Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

student submitted image, transcription available below student submitted image, transcription available below student submitted image, transcription available below

 

Lab Activity No.2:

student submitted image, transcription available below

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:

student submitted image, transcription available below student submitted image, transcription available belowstudent submitted image, transcription available below


 
 
 
 

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Question 1 Initialize an empty list to store the numbers numbers while True userinput inputE... 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

Java An Introduction To Problem Solving And Programming

Authors: Walter Savitch

8th Edition

0134462033, 978-0134462035

More Books

Students also viewed these Programming questions

Question

Describe businesss social responsibility to investors.

Answered: 1 week ago