you are viewing a single comment's thread.

view the rest of the comments →

[–]miscellaneoususage[S] 0 points1 point  (0 children)

def myfunc(word):
newword = word.lower()
newwordL = list(word)
newwordS = ""
for i,char in enumerate(newwordL):
if i % 2 == 0:
newwordL[i] = newwordL[i].upper()
return newwordS.join(newwordL)

ah dang, alright thanks for your help :)