How It WorksPricing🔥Interactive Engineering Learning🤩 Free Career AdviceAboutContact
Log In
Add to Slack

Python Magic Quiz

Test your knowledge of Python by answering this quiz!
Question 1 of 1

What will the following Python code print?

#item price in dollars
old_price = {'sugar': 1.02, 'jam': 2.5, 'cheese': 2.5}

dollar_to_pound = 0.76
new_price = {item: value*dollar_to_pound for (item, value) in old_price.items()}
print(new_price)


  • [0.7752, 1.9, 1.9]
  • {'sugar': 0.7752, 'jam': 1.9, 'cheese': 1.9}
  • ['sugar', 'jam', 'cheese']
  • {'sugar': [0.7752], 'jam': [1.9], 'cheese': [1.9]}
How do you stack up?
My Progress
Percentage of Total Answers Correct
0 / 0
0%

Breakdown by Tag
python
0 / 0
0%
SkillMagic

How It Works