fork download
  1. airline="AirIndia"
  2. luggage_weight=28
  3. AI_weight_limit=30
  4. EM_weight_limit=35
  5. if(airline=="AirIndia"):
  6. if(luggage_weight<=AI_weight_limit):
  7. print("Check-in cleared")
  8. else:
  9. print("Remove some luggage and come back")
  10. elif(airline=="Emirates"):
  11. if(luggage_weight<=EM_weight_limit):
  12. print("Check in cleared")
  13. else:
  14. print("Remove some luggage and come back")
  15. else:
  16. print("Invalid airline")
Success #stdin #stdout 0.02s 7160KB
stdin
28
stdout
Check-in cleared