Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 620 Bytes

README.md

File metadata and controls

39 lines (24 loc) · 620 Bytes

sWAP cASE

https://www.hackerrank.com/challenges/swap-case

Problem

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.HackerRank.com → wWW.hACKERrANK.COM
Pythonist 2 → pYTHONIST 2

Input Format

A single line containing a string S.

Output Format

Print the modified string S.

Sample Input 0

HackerRank.com presents "Pythonist 2".

Sample Output 0

hACKERrANK.COM PRESENTS "pYTHONIST 2".

My Solution