find the largest and smallest number using loop in list
Answers
Answered by
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
0
1 smallest
9999 largest
9999 largest
Similar questions