by CodeChum Admin
Remember that time when we've tried identifying the largest digit among the given integer? Well, let's take it to the next level, and figure out the same thing on arrays/lists!
Let's do this one more time!
Instructions:
Input
The first line contains the size of the array/list.
The next lines contains an integer on each.
5
5
34
3
23
10
Output
A line containing an integer.
34
import randomnumber = int(input('Enter the size of list:'))list = []for i in range(0,number): n = random.randint(1,100) list.append(n)print(*list, sep= '\n')print(max(list))
Comments
Leave a comment