I need to find the asnwer to this question I do have the code from the lab before I just need to know how to add that one to the other code. 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 This is the code of the lab before that wants me to add to it.
I need to find the asnwer to this question I do have the code from the lab before I just need to know how to add that one to the other code.
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 -6the output is:
[10, 5, 3, 21, 2] 2 and 21Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
How do I add both of the codes so that there is not a space but the 2 and 21 is on a new line.
It's telling me that there is a space and that there wasn't a enter pushed
How do I add this code to the code that is to go with this lab. It's telling me to copy it and paste it in this lab and update it to have it give me the right answers.
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 -6the output is:
[10, 5, 3, 21, 2] 2 and 21