Untitled
unknown
plain_text
2 years ago
813 B
9
Indexable
FRIENDS = 500
FAMILY = 1000
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")
exit()
bride_and_groom = input("Are the bride and the groom close friends of yours? ")
if bride_and_groom == "yes":
total_amount = FRIENDS
else:
total_amount = OTHER
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? "))
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