You are viewing a single comment's thread from:

RE: The Anti-@stimialiti Pro-Active and Reactive Counter Tool

in STEMGeeks2 years ago

I am used to For...Next. In the case of Python there is no 'Next' so you have to space it correctly.. below is a snippet..

image.png

The next 'if' statement need to line up and be spaced, not tabbed. It was frustrating to start with.

After trying to teach many a person VBS in the past, I feel like you either have the coding gene or you don't.. and if you don't you will never be able to write things from nothing.. just edit existing scripts.

Sort:  

Many code editing software will convert tabs to spaces automatically when editing Python. I use VS Code, and it does that, so I don't get the message about mixing spaces and tabs. I did get that error message when I was using the IDLE program that comes with Python when you install it.

I'm using some ancient editor from 2007, and that isn't helping much. It's better than notepad!

That is probably the camp that I fall into. That last part. :P