LearnPy Hub
← Strings problems
Easy

Where Is the Letter?

Read a word and a letter. Print the position (from 0) where the letter first appears, or -1, using find().

Input

Two lines.

Output

One integer.

Sample 1

Input
banana
n
Output
2

Sample 2

Input
hello
z
Output
-1
solution.py
Output appears here
Where Is the Letter? · Python practice problem · LearnPy Hub