Answered step by step
Verified Expert Solution
Question
1 Approved Answer
how to correct the code in In [224] Appreciate it!!! Given a dictionary that instead maps majors to lists of names, repeat the above question.
how to correct the code in In [224] Appreciate it!!!
Given a dictionary that instead maps majors to lists of names, repeat the above question. In [224]: def major_2 (major, name): tor n in name: m-maior 2.get(n) def check major (name, major, major 2): if majors 2 n m: return True else: return False In [225]: majors_2 - ["Engineering": ["Josh", "Robert", "Irene" ], "Accounting": "Carol", "Christine", "Charles" ], "Art History": "Douglas " ] check major2( "Douglas", "Art History", majors 2) == True Traceback (most recent call las NameError t)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started