Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def result():
- first_num = int(input())
- second_num = int(input())
- third_num = int(input())
- if first_num < second_num and first_num < third_num:
- return first_num
- elif second_num < first_num and second_num < third_num:
- return second_num
- else:
- return third_num
- print(result())
- Решение с min():
- def result():
- first_num = int(input())
- second_num = int(input())
- third_num = int(input())
- return min(first_num, second_num, third_num)
- print(result())
- Или тарикатската:)
- def result():
- return min(int(input()), int(input()), int(input()))
- print(result())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement