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:
Lab Activity No.2:
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:
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...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Java An Introduction To Problem Solving And Programming
Authors: Walter Savitch
8th Edition
0134462033, 978-0134462035
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App