-
Notifications
You must be signed in to change notification settings - Fork 265
Dictionary Description
kyra-ptn edited this page Aug 15, 2025
·
5 revisions
Unit 2 Session 1 (Click for link to problem statements)
Understand what the interviewer is asking for by using test cases and questions about the problem.
Plan the solution with appropriate visualizations and pseudocode.
General Idea: Find the bug in the provided code!
- Don't just change the input to make it work -- change the function
get_description
so that it can safely handle the situation.
def get_description(info, keys):
for key in keys:
if key in info:
print(info[key])
else:
print(None)