Skip to content

Instantly share code, notes, and snippets.

@ejingles
Last active April 1, 2021 00:47
Show Gist options
  • Select an option

  • Save ejingles/48ea2dba51e8a305fada9cbe0678c759 to your computer and use it in GitHub Desktop.

Select an option

Save ejingles/48ea2dba51e8a305fada9cbe0678c759 to your computer and use it in GitHub Desktop.
Functions #10: skyline
My attempt:
def myfunc(a):
new_word=""
for _ in range(len(a)):
if _ % 2 == 0:
new_word = new_word+a[_].upper()
else:
new_word = new_word+a[_].lower()
return new_word
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment