+ 1

shopping list

I want to define a list called Friday menu(or variable) with with an index of 13 elements like so: Friday = [0,1,2,3,4,5,6,7,8,9,10,11,12] I want the program to check up the buyer have the ingrediens for the list to make the menu, and here is my problem: if 0 in Friday print(input("Do you have 0")) then it stops there and the output says: File "..\Playground\", line 8 if "0" in Fridag ^ SyntaxError: invalid syntax it says it doesn´t know my variable i defined as a list. that is what it is telling me with that arrow underneath where the error is located. it´s is defined but i can´t see where I made a mistake?

25th Feb 2019, 9:49 PM
Bertil
Bertil - avatar
3 Antworten
+ 3
Yes the arrowhead helps point you to your mistake. And you misspelled Friday and forgot a colon.
26th Feb 2019, 2:26 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
Missing colon at the end of the if statement. if 0 in Friday:
25th Feb 2019, 10:44 PM
Diego
Diego - avatar
+ 1
Oh, just that. Thx 😂
25th Feb 2019, 10:46 PM
Bertil
Bertil - avatar