LearnPy Hub
← Strings problems
Easy

Position of a Letter

Read a word and a letter. Print the index of the first time the letter appears, or -1 if it does not, using find().

Input

Two lines.

Output

One integer.

Sample 1

Input
banana
n
Output
2

Sample 2

Input
Python
P
Output
0
solution.py
Output appears here
Position of a Letter · Python practice problem · LearnPy Hub