You are viewing a single comment's thread from:

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

in STEMGeeks4 years ago

As always you need a project to work on and this was mine. I don't find switching languages hard and am quite in tune with them as there are always tons of examples on the internet.

In this case, I had to work with @holger80's documentation which was quite painful at times. You have to keep trying things until it works. I had a lot of problems when I started and it took a while for anything to work.

The spacing thing is weird. Python will stop with an error if you code is incorrectly spaced. Never seen that before.

Sort:  

That does seem kind of weird. I always missed commas in different places. That or colons and semicolons. It was a pain.

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.

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