Question: def odd_character(string): odd_chars = for i in range(len(string)): if i % 2 == 0: odd_chars += string[i] print(odd_chars)
def odd_character(string):
odd_chars = ""
for i in range(len(string)):
if i % 2 == 0:
odd_chars += string[i]
print(odd_chars)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
