Python is squeezing my patience

I’ve got some ideas for some apps on my iPhone. This means I need to learn Swift. I was trying to learn Swift earlier, but also Python at the same time, and since these were my first coding languages, it was messing me up in the brain. So I put Swift aside to focus on Python. Python, I’m told, has lots of applicability, and is easy.

Okay, except for making Python 3 my default. Looking for answers, I come across making alias, using third-party programs to switch versions, and more. Opening up Terminal I see that my default is 2.7. Okay, I type in python3 and get an error. I have to quit Terminal, reopen from scratch, and type python3 for it to load. But what if I’m using Sublime Text or some other tool for running a script? How do I set the latest version? Why can’t I just nuke out the python 2.7 out of my computer and only use python 3?

Anyway, I’ve been trying to do the “#100DaysOfCode” bit, and a couple of days now I’ve posted some WHILE loops in Python. It’s been tedious. I prefer to write in Sublime Text instead of IDLE, but can’t run it in Sublime Text. I’ve had to close out the IDLE each time, reopen it, get an error message, fix it in ST, close IDLE, reopen it, get an error message, fix it in ST, close it IDLE, reopen it, run it, and get it to work. Tedious! There’s got to be a better way.

I’ve been trying to watch some YouTube videos, read some blogs, and scour some StackOverflow. Seems there is a CMD B to run a build in Sublime Text. Awesome!

Except that it will only run partially.

In the above is a portion of some loops that I made. It asks if you want to investigate the door. You answer either ‘yes’ or ‘no’ and then it responds to that. When I run the build with CMD B, it asks at the bottom ‘would you like to investigate the door? yes or no’ and I type in ‘yes’ and hit enter. Nothing happens.

I’ve been all over the interwebs looking for an answer. So far I’m stuck.
As far as Sublime Text goes, all of the videos that I’ve seen has a neat trick of CMD shift P to open up the Control Panel. From there one can access the Package Manager and install it (no option for me to do so) and view a variety of packages (again, none of these were available for me). I watched a video from 2016 where he walked through an entire installation process. ST must have changed a lot regarding the Package Manager since then, for none of the steps worked for me. Going to the supporting documents online has, so far, proved fruitless.

I will continue my search, after my shift. I don’t get much time to work on code or classes while on deployment, and when I do have some time, it’s spent trying to figure out how to just get the things to work. Two hours of precious time, gone. But I shall persevere!

Published by Eddie

I'm a goofball. I like Doctor Who, Star Wars (yes, all of them), and of course Firefly. I think that "Out of Gas" from Firefly is the single greatest episode of any SciFi. Closely followed by "All Great Things..." from Star Trek: The Next Generation. I'm an Apple geek. Seriously, I brought a 2013 MBP and two iPads with me on deployment. Every year I watch all the Apple Keynotes. Someday I'd like to learn Swift, as I've got some ideas for some useful apps that I'd like to use. One might find me at a coffee shop, at the LGS getting more Magic: The Gathering cards, on some trail in the mountains of Oregon, on one of my Macs, running a trail, or who knows.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: