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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!