- Home
- Course Category
- Course Result
- Course Detail
Hot Line: 08377052947
-
TeacherManoj Sir
-
Category
Programming, Website Development
-
Duation
20 hours
-
Reviews(42 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 arithmetic division operator (%) to find even or odd number.
Source Code:
Program To Remove The Characters Of Odd Index Values In A String In Python
# REMOVE THE CHARACTERS OF ODD INDEX VALUES IN A STRING
def modify(string):
final = ""
for i in range(len(string)):
if i % 2 == 0:
final = final + string[i]
return final
string=input("Enter string:")
print("Modified string is:")
print(modify(string))
Output
Run the program to see the output