Untitled
unknown
plain_text
2 years ago
892 B
6
Indexable
FAMILY = 1000 FRIENDS = 500 OTHER = 250 family_members = input("Are you family related to the bride or groom? ") if family_members == "yes": total_amount = FAMILY print("Your check for the wedding should be:", total_amount, "NIS") else: bride_and_groom = input("Are the bride and the groom close friends of yours? ") if bride_and_groom == "yes": total_amount = FRIENDS time_known = float(input("How many years have you known the bride and the groom for? ")) travel_time = float(input("How many minutes is the travel time to the wedding? ")) else: total_amount = OTHER if time_known > 3 and family_members == "no": total_amount += 50 if travel_time > 60 and family_members == "no": total_amount -= 50 print("Your check for the wedding should be:", total_amount, "NIS")
Editor is loading...
Leave a Comment