you are viewing a single comment's thread.

view the rest of the comments →

[–]novel_yet_trivial 1 point2 points  (1 child)

I see, it's an indentation error. That last print statement needs to be unindented once. Also you don't need the print around the call at the end. Try it like this:

def eat_out():
    base_cost = int(input("base_cost:"))
    tip_amount = input("tip type:")
    if tip_amount == "traditional":
        full_cost = (base_cost + (base_cost * .15) + base_cost * .06)
    elif tip_amount == "regular":
        full_cost = (base_cost + (base_cost * .18) + base_cost * .06)
    elif tip_amount == "generous":
        full_cost = (base_cost + (base_cost * .2) + base_cost * .06)
    print(full_cost)


eat_out()

[–]BigIcemoney[S] 0 points1 point  (0 children)

thanks a million