naren_paste

budha_code

Aug 19th, 2024
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.91 KB | Source Code | 0 0
  1. age = int(input("Enter your age: "))
  2. disease = input("Do you have any disease? (yes/no): ").strip().lower()
  3.  
  4. if age == 70 and disease == "no":
  5.     print("You are the good budha.")
  6. elif 50 <= age < 70:
  7.     money = int(input("Enter your money (in INR): "))
  8.     if money > 1000000:
  9.         print("You are retired.")
  10.     elif 500000 <= money <= 1000000:
  11.         print("You are a working budha.")
  12.     else:
  13.         print("You have just started your career.")
  14. elif 20 < age < 50:
  15.     married = input("Are you married? (yes/no): ").strip().lower()
  16.     has_child = input("Do you have children? (yes/no): ").strip().lower()
  17.     has_job = input("Do you have a job? (yes/no): ").strip().lower()
  18.    
  19.     if married == "yes" and has_child == "yes" and has_job == "no":
  20.         print("You are berojgar (unemployed).")
  21.     else:
  22.         print("No specific classification.")
  23. else:
  24.     print("No specific classification.")
  25.  
Advertisement
Add Comment
Please, Sign In to add comment