Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 04. Number sequence
- import sys
- n = int(input())
- max_num = - sys.maxsize -1
- min_num = sys.maxsize
- for num in range(n):
- current_num = int(input())
- if current_num > max_num:
- max_num = current_num
- if current_num < min_num:
- min_num = current_num
- print(f"Max number: {max_num}")
- print(f"Min number: {min_num}")
Add Comment
Please, Sign In to add comment