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 random
l = []
positive = int(input('Enter positive integer: '))
for i in range(positive):
l.add(random())
for i in l:
print(i)
Comments
Leave a comment