LearnPy Hub
← Lists problems
Easy

Where Is It?

Read a list of words and a target word. Print the index of the target using index() (it is always in the list).

Input

Two lines.

Output

One integer.

Sample 1

Input
cat dog fish
dog
Output
1

Sample 2

Input
a b c
a
Output
0
solution.py
Output appears here
Where Is It? · Python practice problem · LearnPy Hub