Computer Science, asked by rawatlaxmi570, 8 months ago

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

Answers

Answered by AmishiChoudhary101
1

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.
Answered by kausalyap27
0

I PROMISE I WILL FOLLOW YOU IF YOU MARK AS BRAINLIST

THANKS FOR QUESTION

YOUR ANSWER IS

Suppose there is a list of non-negative integers, we have to arrange them such that they form the largest number. So if the array is [10, 2], then the largest number will be 210.

Similar questions