Input Format
A single line containing a string .
Constraints
Output Format
Print the modified string .
Sample Input 0
HackerRank.com presents "Pythonist 2".
Sample Output 0
hACKERrANK.COM PRESENTS "pYTHONIST 2".
sWAP cASE - Hacker Rank Solution
Use the method string.swapcase(s) to swap lower case letters to upper case letters and vice versa.
Problem Setter's code:
import string
print string.swapcase(raw_input())
No comments:
Post a Comment