Question: The following program fills a list called values with ten random numbers between 1 and 100, and computes both the maximum and the minimum of

The following program fills a list calledvalueswith ten random numbers between 1 and 100, and computes both the maximum and the minimum of the list simultaneously using a while loop.

Sample Run

The list is [50, 65, 81, 73, 58, 61, 91, 80, 39, 2]

Maximum value = 91

Minimum value = 2

from random import randint

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!