Question: Write a Python program that prompts the user to enter an integer number and store the numbers the user enters in a list. You will

Write a Python program that prompts the user to enter an integer number and store the numbers the user enters in a list.

You will stop reading from the user when he/she enters ‘done’.

Then use the max() and min() functions to compute the maximum and minimum numbers after the loop completes.

Sample output:

Write a Python program that prompts the user to enter an integer number and store the numbers the user enters in a list.You will stop reading from the user when he/she enters ‘done’.Then use the max()

 

Lab Activity No.2:

and min() functions to compute the maximum and minimum numbers after the

Write a Python program that create a tuple named ItemsIDs containing the IDs of five Items. Item ID is three digits integers (e.g., 110, 111, 112, 113, and 114).

Write a function called find_item that takes the ItemsIDs tuple and Item ID entered by the user as an argument and finds if the item is listed in the ItemsIDs tuple and returns True or False.

Ask the user to enter an item ID to search for in the ItemsIDs tuple. Then use the find_item function and print in the main appropriate message if the item is found or not found.

Sample output:

loop completes.Sample output:   Lab Activity No.2:Write a Python program that create a tuple named ItemsIDs containing the IDs of five Items. Item ID is three digitsintegers (e.g., 110, 111, 112, 113, and 114).Write a function called find_item that


 
 
 
 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Question 1 Initialize an empty list to store the numbers numbers while True userinput inputE... View full answer

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 Programming Questions!