Learning Objectives In this lab, we are using dictionaries to store…

  

Learning Objectives In this lab, we are using dictionaries to store… Learning ObjectivesIn this lab, we are using dictionaries to store information and to update this information if needed.In this lab, we’ll create a dictionary that will allow you to store some information about you (if you work alone) or your partner (if you work in a group).InstructionsRead from the user the following information (use input() – to read something from the user, not hardcode it!):nameclass (the class that the user attends now, for example “CS 8”)food (a favorite food of the user, for example “pizza”)age (current full age of the user, for example, 42)”Name””Attending class””1st favorite food””Age”Update the age value in the dictionary on 10. (it is the same as increasing a usual variable)Print all the values and keys in your dictionary (it is printing the dictionary itself).Example InputLiuCS 8Pizza41Example Output{‘Name’: ‘Liu’, ‘Attending class’: ‘CS 8’, ‘1st favourite food’: ‘pizza’, ‘Age’: 51} Computer Science Engineering & Technology Python Programming CS 8

Don't use plagiarized sources. Get Your Custom Essay on
Learning Objectives In this lab, we are using dictionaries to store…
Just from $13/Page
Order Essay
  

Leave a Reply

Your email address will not be published.

Related Post

Assume that an Italian foreign investor plans to construction, own, manage and operation a new 4-star resort in Aitutaki at an outstandingly…Assume that an Italian foreign investor plans to construction, own, manage and operation a new 4-star resort in Aitutaki at an outstandingly…

  Resort Development Risk Management PlanThis group assignment aims to develop your understanding of project risk analysis and itsapplication to a new proposed tourism resort project. Assume that an Italian foreign

READ MOREREAD MORE
Open chat
💬 Need help?
Hello 👋
Can we help you?