Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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