Answered step by step
Verified Expert Solution
Link Copied!

Question

00
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

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions