Question: python Question 3 Write a function that takes in a admission dictionary as you created in question and finds a students from their name. The
pythonQuestion 3 Write a function that takes in a admission dictionary as you created in question and finds a students from their name. The function should return the ID the name exists within the dictionary, or the string student not found in the name does not exist. You can assume that there is no duplicate ramos In t 1. det tind_la(dictionary, name) # YOUR CODE RE find_id132 George', 'Ingineering'. Anitted'. 265' l'arte', 'Belence' mitted 543' 'Christina', 'Engineering'. Tot admitted!). 311' I 'Dennis'. 'Pharmacy Admitted'l. 3251 L Jerry', 'elence, 'Hot Admitted). George') nil: dictionary - 263: 'Christina Engineering, Not Admitted']. 1735 1 tarie, Science'. 'Admitted'). 523': [ 'George'. 'Engineering Admitted 543': 'Ray'. 'Pharmacy'. 'Not Admitted 345': 'John', 'Computer Science'. 'Not Admitted 1 534 + 'Jerry'. Science, tot Admitted') inputs - dictionary. 'George'.). dictionary, ed.). (dictionary, Marie.) printre doresteretcases __Find_1.x) for * in inputs toTot.co printtesta) allesaits -checkItems_(find_id, iv.ex.printval - False) for (iv,ex) in testa print alleeulta) LE Taise not in ailesultat elset assert False ++D NEDEN TESTS
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
