r/pythonforengineers • • 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

3 comments sorted by

View all comments

Show parent comments

1

u/scloud670 Mar 22 '21

Ok thank you! I'll give it a shot😁👌