I am very new to 2D Arrays in python. I am trying to create a 2D array that asks the user to input a name and then finds the name in the array and prints out what position that name is.
My code so far is:
pupil_name = [['Jess', 0], ['Tom', 1], ['Erik', 2]]
enter_pupil = input('Enter name of Pupil ')
print(str(pupil_name) + ' is sitting on chair number ' + str([]))
print(' ')
Is what I am asking possible? It is just for fun and would love to make it work. Thanks in advance