Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

3 . 9 LAB: Smallest and largest numbers in a list using min and max built - in functions NOTE 1 : Please make sure

3.9 LAB: Smallest and largest numbers in a list using min and max built-in functions
NOTE1: Please make sure you complete previous lab successfully before you proceed with this Lab assignment
NOTE2: Make sure to copy and past your code from previous lab into here and update it to complete this lab
Write a program that reads a list of integers into a list as long as the integers are greater than zero, then outputs the list values and the smallest and largest integers in the list using min and max built-in functions .
Ex: If the input is:
10
5
3
21
2
-6
the output is:
[10,5,3,21,2]
2 and 21

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_2

Step: 3

blur-text-image_3

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

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students explore these related Databases questions

Question

Official Time: 19:57:56

Answered: 3 weeks ago