RE: Working With If Statements In Python

avatar

You are viewing a single comment's thread:

Loops and conditions are what make programming powerful. Some knowledge of logic may be required.

I see you put the conditions in (...), which is not strictly necessary. I have seen others do this and it may be habit as other languages require it.

I won't get into the spaces vs tabs indenting argument, but consistency is the most important thing.



0
0
0.000
3 comments
avatar

Hey @steevc thanks for your comments and thanks for bringing up about conditions needing to be in brackets. I have actually amended the article to include a note about adding brackets for the conditions as well.
Really appreciate you taking the time to mention that as it really helps.
Regards Vince

0
0
0.000
avatar

No problem. It's useful for me to read through these to see what I can learn.

!BEER

0
0
0.000