(python) synthax error in a very basic script


#1

Hi there
I'm more than a newbie in coding and my trying to learn the basic in Python.
I am using textWrangler and the terminal.

What's wrong in line 2? I copied it from an online tool and the script is such a basic one...

thanks a lot for your patience

p.s. I tested all possible variations as adding the space (i.e. X < 10)


#2

a colon is missing:

if condition:

#3

Thank YOU
I feel like a dumbhead.
Sorry for such a naive question :dizzy_face:


#4

no need to apologizes, programming is very difficult. And very confusing when you start, a mistake is easily made :wink:


#5