LearnPy Hub
← Strings problems
Easy

Swap the Case

Read a line and print it with capitals turned small and small letters turned capital, using swapcase().

Input

One line.

Output

One line.

Sample 1

Input
Hello World
Output
hELLO wORLD

Sample 2

Input
PYTHON
Output
python
solution.py
Output appears here
Swap the Case · Python practice problem · LearnPy Hub