LearnPy Hub
← Strings problems
Easy

Every Second Character

Read a word. Print the characters at even positions using [::2], then the characters at odd positions using [1::2].

Input

One word.

Output

Two lines.

Sample 1

Input
abcdef
Output
ace
bdf

Sample 2

Input
Python
Output
Pto
yhn
solution.py
Output appears here
Every Second Character · Python practice problem · LearnPy Hub