If-else statement for beginners with python


Hey Guys,

im very new and got a problem with my python script. The error is called “unexpected token ” and im not sure how i can solve this. Any suggestions?

Put a colon at the end of line 10.

Ps, you’ve spelled ‘rectangular’ wrong. :slight_smile:

1 Like

Thank you for the quick reesponse. Unfortunately the python script is returning “null”. How can i make it a string?

You’ve called your results boolean… Which is the same as IN[0]

Boolean means true/false… so I’d suggest this is not good.

Try this:

1 Like

Thank you very much!

1 Like

bool is a python builtin type, so it is good practice to use different name for a variable

3 Likes