If statement in python

I am a beginner in python can anyone say why if statement is not working

@dineshsubramani you need to indent your code after the “:”

https://docs.python.org/3/tutorial/controlflow.html

1 Like

num = IN[0]

the line after if , use 4 spaces and start

1 Like

Thank a lot khuzaimah

1 Like

You should have an indent / Tab in the next line of IF
image

1 Like

Learn more about…Python If statement

1 Like