- Home
- Course Category
- Course Result
- Course Detail
Hot Line: 08377052947
-
TeacherJyoti
-
Category
Programming, Website Development
-
Duation
15 hours
-
Reviews(117 review)
-
Call Us for Details
Basic Python Course Questions
Python programming language is a general-purpose, dynamic programming Language.Python language have a large library of packages which makes python for beginners a language of choice.
Python Programs For Beginners Practice
In the program below, we used the index method to get nth character
Source Code:
Program To Remove The Nth Index Character From A Non-Empty String
# PROGRAM TO REMOVE THE NTH INDEX CHARACTER FROM A NON-EMPTY STRING
string=input("Enter the string:")
n=int(input("Enter the index of the character to remove:"))
first = string[:n]
last = string[n+1:]
print("Modified string:",first+last)
Output
Enter the string:we123
Enter the index of the character to remove:1
Modified string:
w123