Created
March 1, 2018 17:23
-
-
Save Pierian-Data/5767f49f825dbc9f9bf1357b2152b010 to your computer and use it in GitHub Desktop.
This file contains 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
def myfunc(x): | |
out = [] | |
for i in range(len(x)): | |
if i%2==0: | |
out.append(x[i].lower()) | |
else: | |
out.append(x[i].upper()) | |
return ''.join(out) |
nam-vuhoang
commented
Jun 13, 2024
•
def myfunc(x):
out[]
for i in range(len(x)):
if i%2==0:
out.append(x[i].lower())
else:
out.append(x[i].upper())
return' '.join(out)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment