Skip to content
Open navbar menu
Sign UpLog In
Profile icon

anygard

@anygard
Repls
Community
anygard
anygard
shared a Post
3 years ago
Python Restaurant Menu
I'm trying to create a menu in python and my 4/5 functions are not working. My first function on line 53 is working but a similar function on line 62
finalProject.py
Python
Kai_Justice
Kai_Justice
Before your main problem there's another with an unidentified variable that's mentioned here, [Line 46] : "NameError: name 'amountCustomer' is not defined And for the while loops that I assumed you called functions, An easy way to simplify your code, instead of copy and pasting the same statement this would be an easy fix for _ in range(10) : That prints out whatever you put under it however many times specified in the range. When your done and want the user to move on to something else use br3 years ago