Invalid Syntax
how do i fix this? (line 53)
HunterBerg
@hoop4life creating a meal out of a list of main courses sides and drinks
NightKnight2
You could just remove the else statement. It seemed to work like that
hoop4life
I think
hoop4life
tab the 'continue' 2 times from where it is now
HunterBerg
@hoop4life didnt work
trg5503
Remove the blank line between the "break" and "else"
HunterBerg
@trg5503 didnt work
trg5503
@HunterBerg I was looking at the wrong line, now I see your issue
Python uses whitespace very strictly, unlike many other general languages like JavaScript. Since your "else" statement on line 52 matches the same whitespace as the bit above, it doesn't correctly match it up with the if statement.
You can fix this by removing 2 spaces before the "else"
HunterBerg
@trg5503 if it is it doesnt work
valanbechtold
@HunterBerg
unindent the else: and continue once, it should read on the same lines as your if sq2 == "yes"
@HunterBerg
Some suggestions:
Pick more meaningful variable names, as they will help you achieve better readability.
Edit your code for proper indentation.
Regardless, I edited the indentation of your program, which you can find below.