You are viewing a single comment's thread from:

RE: Working With If Statements In Python

in STEMGeeks7 months ago

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.

Sort:  

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

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

!BEER

 7 months ago Reveal Comment