I am trying to write a function where the Key of a dictionary is printed when the user inputs one of its values.
My dictionary is:
student = {c0952: [18, 'John', 'Smith'],
c0968: [24, 'Sarah', 'Kelly']
}
For for example if the user inputs 'John' then the student number c0952 will print.
Thanks!