Where do I code?

Don’t I have to use [insert fancy computer] to code? No way! You can use any computer, tablet, or smartphone, it doesn’t even have to be connected to the internet. Though, some of the best resources are on the internet, for free.

Fun fact: if you have one, you can even code with a graphing calculator.

Okay, Cool, but Where on my computer can I code?

This is a hard question to answer because there are tons of places you can code. Let’s talk about a few different ones.

Free Easy to Use Visualize Can save your work Online Requires download
IDLE
PythonTutor.com
Trinket.io

IDLE

This is an editor that comes with Python when you download it. (we’ll talk about downloading in a bit). It pretty much looks like a blank document that you can type in. You can type your code in, hit enter, and it will run your code. It looks like this. See the >>>? That’s telling you where you can type. For now, you can ignore the first 3 lines of what probably looks like gibberish.
Screenshot of Python 3.7.3 Shell. It shows 3 lines of text at the top, then a mostly blank line with ">>>" at the beginning
Note: IDLE does require that you download Python, which will require some space on your computer. We’ll cover how to install before we start coding.

Python Tutor

Python Tutor is a free website you can use without logging in. It runs and helps visualize code. As you learn more things, I’ll explain what they should look like in Python Tutor. Personally, my vote is for everyone to start using this or something similar. For now, here is what Python tutor looks like when you go to Python Tutor

You don’t have to adjust any of the drop-down menus, the defaults are perfect. You can type where it says 1. This just means you are on line 1 of the code. As you type more, it will number each line of code.

There are two ways to use Python Tutor. With the first option, you may type all of your code, then click Visualize Execution which allows you to click the next button to see what happens at individual steps of your code.

The other option is to click Live Programming Mode or go to Python Tutor Live. In this mode, your code will run as you type. I find this helpful as it immediately shows you what each step is doing.
screenshot of Python Tutor showing the dropdown with the python version, the text box to write in, and the buttons "Visualize Execution" and "Live Programming Mode"
Most of the work you do, while learning, will run perfectly on Python Tutor. Though, there are a few projects that will work better with Trinket.io.

Trinket.io

We’ll use Trinket later in the Modules section to play with emojis, date and time, turtle drawing, graphs and charts, and Wikipedia.

What if I already have a code editor or want one?

That's great. If you know how, go ahead and use it. Python files end with .py. If you don’t know how, I highly suggest using one of the above options. I find it’s easiest to learn just one thing at a time. Learning code and how to use the editor may become a bit stressful and overwhelming.

If you don't have an editor on your computer and want one, you may choose to install one like Atom from https://atom.io/.

Either way, most examples will be explained using Python Tutor.

21