def myfunc new_word for index letter in enumerate start if index new_w

1
2
3
4
5
6
7
8
9
def myfunc(s):
new_word = ""
for index,letter in enumerate(s, start = 1):
if index%2==0:
new_word = new_word+letter.upper()
elif index%2==1:
new_word = new_word+letter.lower()
return new_word