Last active
April 1, 2021 00:47
-
-
Save ejingles/48ea2dba51e8a305fada9cbe0678c759 to your computer and use it in GitHub Desktop.
Functions #10: skyline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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