Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- numbers = [int(i) for i in input().split()]
- def min_num():
- return min(numbers)
- def max_num():
- return max(numbers)
- def sum_num():
- return sum(numbers)
- print(f'The minimum number is {min_num()}\n'
- f'The maximum number is {max_num()}\n'
- f'The sum number is: {sum_num()}')
- Или:
- numbers = [int(i) for i in input().split()]
- def result():
- return f'The minimum number is {min(numbers)}\n' \
- f'The maximum number is {max(numbers)}\n' \
- f'The sum number is: {sum(numbers)}'
- print(result())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement