Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- age = float(input())
- gender = input()
- if age < 16:
- if gender == 'm':
- print('Master')
- else:
- print('Miss')
- else:
- if gender == 'm':
- print('Mr.')
- else:
- print('Ms.')
- Тарикатско решение:)
- age = float(input())
- gender = input()
- print(("Master" if gender == "m" else "Miss") if age < 16 else ("Mr." if gender == "m" else "Ms."))
Add Comment
Please, Sign In to add comment