by CodeChum Admin
Looping a number and taking away each digit of it is so much fun, but I wanted to try out a much more complex task: getting the largest digit among them all.
Think you can handle the job?
Instructions:
Input
A line containing an integer.
214
Output
A line containing an integer.
4
import random
l = []
positive = int(input('Enter positive integer: '))
for i in range(positive): l.add(random())
for i in l
print
Comments
Leave a comment