Question: Write a Python program to take user inputs of int numbers (more than 3 numbers) into a dictionary as values until the user type 'done'.

  1. Write a Python program to take user inputs of int numbers (more than 3 numbers) into a dictionary as values until the user type 'done'. For each input, give the default index of 1, 2, 3, etc as keys. Print out the dictionary and find the three largest values.

 Write a Python program to take user inputs of int numbers

Please enter the #1 int number until done: 59 Please enter the #2 int number until done: 99 Please enter the #3 int number until done: 16 Please enter the #4 int number until done: 38 Please enter the #5 int number until done: 41, Please enter the #6 int number until done: done {1: 59, 2: 99, 3: 16, 4: 38, 5: 41} The 3 largest values are: 99 59 41

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!