desislava_topuzakova

04. Personal Titles

Feb 21st, 2021
672
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. age = float(input())
  2. gender = input() # m или f
  3.  
  4. if age >= 16:
  5.     if gender == 'm':
  6.         print("Mr.")
  7.     elif gender == "f":
  8.         print("Ms.")
  9. else:
  10.     if gender == 'm':
  11.         print("Master")
  12.     elif gender == "f":
  13.         print("Miss")
RAW Paste Data