SHARE
TWEET

Untitled

a guest Oct 17th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top