Computer Science, asked by prince3612t, 10 hours ago

find the largest and smallest number using loop in list

Answers

Answered by sayalikamble0169
1

Explanation:

Read input number asking for length of the list using input() or raw_input() .

Initialise an empty list lst = [] .

Read each number using a for loop .

In the for loop append each number to the list.

Now we use predefined function max() to find the largest element in a list.

Answered by aman207764
0
1 smallest
9999 largest
Similar questions