Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = [32, 37, 28, 30, 37, 25, 27, 24, 35, 55, 23, 31, 55, 21, 40, 18, 50, 35, 41, 49, 37, 19, 40, 41, 31]
- max = a[0]
- min = a[0]
- for i in a[1:]:
- if i > max:
- max = i
- if i < min:
- min = i
- print("Maximum :" + str(max))
- print("Minimum :" + str(min))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement