Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribedpython
Question 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago