Name position

Report a typo

We've got a list of names. In this program, if we find the name in the list, we need to print the position of the item. If you cannot find the name, print Name not found.

Sample Input 1:

John

Sample Output 1:

0
Write a program in Python 3
# Do not change the list
name_list = ["John", "Bob", "Mary", "Jane", "Jack"]


def position(names, name):
# Write code here


idx_name = input()
# Print the result
___

Create a free account to access the full topic