max_of_num's.py 186 Bytes
Newer Older
Sai Mounika's avatar
Sai Mounika committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
n=input("enter a range")
a=[]
for i in range(n):
	b=input()
	a.append(b)
print("max in")
print a
print "is"
print(max(a))
"""output:
enter a range3
12
35
62
max in
[12, 35, 62]
is
62
"""