Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

T Sql Fundamentals

Authors: Itzik Ben Gan

4th Edition

0138102104, 978-0138102104

More Books

Students also viewed these Databases questions