Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
785 B
4
Indexable
Never
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()
    
elif bride_and_groom:=input("Are the bride and the groom close friends of yours? "):
    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")
Leave a Comment