5.18 LAB: Smallest and largest numbers in a list Instructor note: Feel free to use Python's built-in min() and max() functions to solve this. The heart of this lab is the first part: constructing a...


In python


5.18 LAB: Smallest and largest numbers in a list<br>Instructor note:<br>Feel free to use Python's built-in min() and max() functions to solve this. The heart of this lab is the first part: constructing a list of<br>values from user-entered input.<br>Write a program that reads a list of integers into a list as long as the integers are greater than zero, then outputs the smallest and largest<br>integers in the list.<br>Ex: If the input is:<br>10<br>5<br>3<br>21<br>-6<br>the output is:<br>2 and 21<br>You can assume that the list of integers will have at least 2 values.<br>

Extracted text: 5.18 LAB: Smallest and largest numbers in a list Instructor note: Feel free to use Python's built-in min() and max() functions to solve this. The heart of this lab is the first part: constructing a list of values from user-entered input. Write a program that reads a list of integers into a list as long as the integers are greater than zero, then outputs the smallest and largest integers in the list. Ex: If the input is: 10 5 3 21 -6 the output is: 2 and 21 You can assume that the list of integers will have at least 2 values.

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here