LearnPy Hub
← Strings problems
Hard

Alternating Case

Read a word and print it with letters at even positions (0, 2, 4, ...) in upper case and odd positions in lower case.

Input

One word.

Output

One word.

Sample 1

Input
python
Output
PyThOn

Sample 2

Input
HELLO
Output
HeLlO
solution.py
Output appears here
Alternating Case · Python practice problem · LearnPy Hub