desislava_topuzakova

04. Personal Titles

Apr 17th, 2021
698
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # възраст -> float
  2. # пол -> text
  3. # проверка за пола:
  4. # m (< 16 или >= 16)
  5. # f (< 16 или >= 16)
  6. age = float(input())
  7. gender = input() # m или f
  8.  
  9. if gender == "m":
  10.     # проверка за възрастта
  11.     if age < 16:
  12.         print("Master")
  13.     else:
  14.         print("Mr.")
  15. elif gender == "f":
  16.     # проверка за възрастта
  17.     if age < 16:
  18.         print("Miss")
  19.     else:
  20.         print("Ms.")
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×