Toggle Me! @ Dcoder

Words
88
Reading
1 min
Listen
Play
3y

Problem: Cody is very irritating child. He always change the characters in his homework, he has a trick. He change all small letter to capital and viceversa. His frinds gave him the title "The Toggle dude".One day his friends gave him some words, but he wasn't feeling well, so you have to help him converting the given Strings to Special String.
The String after applying Cody's trick is called Special String.
Input: Input is a String S
Output: Print the Special String of the given String.
Constraints: 1<=S length<=15
Sample Input: Dcoder123
Sample Output:
dCODER123

s = input()
for c in s:
  if c.islower():
    print(c.upper(), end='')
  else:
    print(c.lower(), end='')
Toggle Me! @ Dcoder | Ecency