Skip to content

Instantly share code, notes, and snippets.

@solen003
Last active August 6, 2018 11:05
Show Gist options
  • Save solen003/53d03146b4fbc85dbe9889aef5ac6f34 to your computer and use it in GitHub Desktop.
Save solen003/53d03146b4fbc85dbe9889aef5ac6f34 to your computer and use it in GitHub Desktop.
aBcDeFgH
def myfunc(mystring):
templist = [x.lower() for x in mystring]
indx = 1
for i in templist[1::2]:
templist[indx] = i.upper()
indx += 2
return ('').join(templist)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment