SwapCase
Submit solution
C, C++, Python
Points:
10 (partial)
Time limit:
10.0s
Memory limit:
64M
Author:
Problem type
Allowed languages
Problem Statement
You are given a string and your task is to swap cases. In other words, convert all lowercase letters to uppercase letters and vice versa.
For Example:
www.AmritaUniversity.com → WWW.aMRITAuNIVERSITY.COM Pythonist 3 → pYTHONIST 3 Input Format
A single line containing a string S.
Constraints
0<=len(S)<=1000
Output Format
Print the modified string S.
Sample Input 0
AmritaUniversity.com presents "Pythonist 3".
Sample Output 0
aMRITAuNIVERSITY.COM PRESENTS "pYTHONIST 3".
Comments