Question: Python Create a list called names with the names in it: Jasper, Sam, Meredith, Chris. Now create a list called ages with the numbers in
Python
Create a list called names with the names in it: Jasper, Sam, Meredith, Chris. Now create a list called ages with the numbers in it: 23, 28, 20, 30. Create an empty dictionary called doggos. Now create a FOR loop that will take the data in the two lists and create a dictionary out of them with the names being the keys and the ages being the values. This can be done in multiple ways. Print the new dictionary.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
