1.

Accept 10 number from the user and display the highest number using python program​

Answer»

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.


Discussion

No Comment Found