LearnPy Hub
← Tuples & Sets problems
Easy

Position in a Tuple

Read words into a tuple and a target word (always present). Print its first position using index().

Input

Two lines.

Output

One integer.

Sample 1

Input
a b c
c
Output
2

Sample 2

Input
x y x
x
Output
0
solution.py
Output appears here
Position in a Tuple · Python practice problem · LearnPy Hub