Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. def myfunc(x):
  2. res=""
  3. i=1
  4. for c in x:
  5. print(i)
  6. if(i%2 != 0):
  7. res += c.lower()
  8. else:
  9. res += c.upper()
  10. i+=1
  11. return res
  12.  
  13. x=input()
  14. print(myfunc(x))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement