Python for loop through nested dictionary question?
Trying to loop through a nested dictionary and want to store values into name, age and occupation. Without manually creating those variables within the for loop. Is this even possible? Just trying to create cleaner looking code. Thank you. people = { 1: {"name": "Simon", "age": 20, "occupation": "Data scientist"}, 2: {"name": "Kate", "age": 30,… Read More Python for loop through nested dictionary question?