Python Woes

PaulaJedi

Survivor
☀️ Zenith
I've dove straight into Python without a tutorial, so I'm beginning to think I should start over. I've had so many problems with modules not installing or showing up in Anaconda, for one thing. I had to figure out how to install them manually from the terminal. Similar issues with Python itself. But I now finally have PyCharm and Pandas installed for a project. I really should just do a basic Python tutorial, though, instead of diving in head first.

Does anyone here program in Python?
 
As a C++ programmer, I once tried python but didn't inhale. There's the right way to program, and then there's the python way. You'll find this counter intuitive many times and confusing.

I don't know of a good tutorial to start with, but there are many. You'll probably want to go over a few. Make sure the tutorial's python version matches what you're running or the examples could fail. Sub versions of python are "usually" compatible, but major versions often break. Once you find a working example, be sure to comment the code and then save it locally as a code example. Be sure to do all this in a plain text editor as python is a bastard about the formatting of white spaces.
 

As a C++ programmer, I once tried python but didn't inhale. There's the right way to program, and then there's the python way. You'll find this counter intuitive many times and confusing.

I don't know of a good tutorial to start with, but there are many. You'll probably want to go over a few. Make sure the tutorial's python version matches what you're running or the examples could fail. Sub versions of python are "usually" compatible, but major versions often break. Once you find a working example, be sure to comment the code and then save it locally as a code example. Be sure to do all this in a plain text editor as python is a bastard about the formatting of white spaces.

I did notice that it is VERY picky.
 

What app are you using to program?

I tend to use Sublime Text to program in Python. I install Python myself, and install new packages with PIP. Then I open or create my new project with Sublime, and run my Python app direct from Sublime. It works well.

If you're using AI to program, for instance, GitHub Copilot, it would be worth it to switch to Visual Studio Code (VSCode). It's an excellent IDE with lots of good features. I didn't try it with Python, but I know it supports it (plugins may be required).

If you're new to it all, you should watch tutorials on YouTube, I'm sure they'll give you a lot of good tips and tricks. And they'll guide you through this initial setup as well.
 

Top