LearnPy Hub
← Lists problems
Easy

Every Other Item

Read a list of words and print every second word starting from the first (positions 0, 2, 4, …) on one line, using the slice [::2].

Input

Words separated by spaces.

Output

One line.

Sample 1

Input
a b c d e
Output
a c e

Sample 2

Input
one two
Output
one
solution.py
Output appears here
Every Other Item · Python practice problem · LearnPy Hub