installing python

In this course we’ll use a program called Thonny to help us write Python programs. You can get it here. After installing and running the program, you should get a window like this:

blank Thonny

You can type code into the top box, and then the bottom box will show the output of your progrom. Type print('hello world') into the top box. Click on File -> Save and then save the file as foo.py. Then press the green circle/triangle button. You should see output like so:

hello world

I don’t want to have to make a bunch of screenshots, so in the future I’ll demonstrate code like this:

print('hello world')
hello world

The first box shows what you should type in the upper box in Thonny, and the second box shows what output you’ll get in the lower box in Thonny after you press the Run button.


previous: your first language next: print