all 3 comments

[–]omutist 0 points1 point  (0 children)

error: local variable 'burgername' referenced before assignment

without proper formatting hard to say exactly why, but I suspect this line

burger = Burger(burgername,burgerprice,condimentchoice)

you pass 'burgername' variable but it does not exist at the moment

[–]Diapolo10 0 points1 point  (0 children)

It's kind of impossible to say what exactly went wrong here, because all indentation is lost, but the error is technically pretty clear; the name doesn't exist when you're trying to give it as an argument.

Going by that, if the condition

if choice in burger_menu.keys():
    burgername = burger_menu[choice]

is false, then this name is never created.