+ 1

can you guys help me with this?

why does it say syntax error? except: print ("ERROR. OUCURRED DO NOT TYPE IN LETTERS Reason: VALUE ERROR") this part is confusing.

4th Mar 2022, 11:33 PM
Bluegray
Bluegray - avatar
4 odpowiedzi
+ 2
You can't use an except statement without a try statement. (It's like using an else statement without an if statement.) https://code.sololearn.com/cM455gY6Ytt6/?ref=app
4th Mar 2022, 11:38 PM
Simon Sauter
Simon Sauter - avatar
+ 1
G'day Coding Berries and Cream that seems like a nice story! Is that part of an ongoing project? Your first if won't work if (Fryer<=90 and Fryer>=199): The variable cannot be both less than 90 and more than 199. This is Python, so you can write 👉if (90>= Fryer <=199): But that would fail to catch any cases below 90. What other condition could you use??
5th Mar 2022, 12:30 AM
HungryTradie
HungryTradie - avatar
0
Also, why are you using a capital letter in your variable? Most coding instructors say to use only lowercase for variable names, only uppercase for constants, and camelCase or snake_case if you really must use multi word variables. Good habits are their own reward, bad habits are hard to break. ❤️= 🍫 + ☕
5th Mar 2022, 12:35 AM
HungryTradie
HungryTradie - avatar
0
I tried that already Simon Sauter , but it did not work
5th Mar 2022, 7:09 PM
Bluegray
Bluegray - avatar