Computer Science, asked by nmohd9852, 10 months ago

How to know Maximum and Minimum values for ints in Python?

Answers

Answered by khushi769
0

Hey mate!!☺️

✔️Approach :

✏️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.

Similar questions