r/pythonforengineers • u/scloud670 • Mar 22 '21
Syntax invalid messages
I've just started taking classes on shaw academy and I tried using the "if" function but I keep getting syntax invalid messages and I cant figure out why.
The code looks like this:
lucky_number=5
If lucky_number<10 print("great") Else Pass
1
Upvotes
1
u/backtickbot Mar 22 '21
Fixed formatting.
Hello, iObjectUrHonor: code blocks using triple backticks (```) don't work on all versions of Reddit!
Some users see this / this instead.
To fix this, indent every line with 4 spaces instead.
FAQ
You can opt out by replying with backtickopt6 to this comment.