Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def myfunc(x):
- res=""
- i=1
- for c in x:
- print(i)
- if(i%2 != 0):
- res += c.lower()
- else:
- res += c.upper()
- i+=1
- return res
- x=input()
- print(myfunc(x))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement