LearnPy Hub
← Iterators & Generators problems
Easy

Find Positions With enumerate

Read words and a target word. Print the positions (from 0) where the target appears, on one line, using enumerate(). Print none if it never appears.

Input

Two lines.

Output

One line.

Sample 1

Input
a b a c a
a
Output
0 2 4

Sample 2

Input
x y
z
Output
none
solution.py
Output appears here
Find Positions With enumerate · Python practice problem · LearnPy Hub