#THONNY PYTHON TUTORIAL CODE#
Get ready to write your first official Python program in Thonny:Įnter the following code into the code editor:Ĭlick the play button to run your program.Ĭlick the play button again to see that it says hello one more time.Ĭongratulations! You’ve now completed your first program in Thonny! You should see Hello world! printed inside the Shell, also known as the console. You’ll use the stop icon later in the tutorial. This can be particularly useful if, let’s say, your code runs a program that opens a new window, and you want to stop that program. J: The stop icon allows you to stop running your code. This is useful in the instance when you no longer want to go step by step through the code, and instead want your program to finish running. I: The resume icon allows you to return to play mode from debug mode. The H arrow tells Python to exit out of the debugger.The G arrow tells Python to take a small step, meaning diving deep into each component of an expression.
Notice the two main sections of the window. You should see a window with several icons across the top, and two white areas: Now that you have Thonny installed, open the application. In this section, you’ll learn about each of the features of the UI that’ll help you use each of the tools in your Thonny toolbox. Your workroom contains a toolbox containing many tools that will enable you to be a rock star Pythonista. Think of Thonny as the workroom in which you will create amazing Python projects.
Let’s make sure you understand what Thonny has to offer. Specifically, it has a built-in debugger that can help when you run into nasty bugs, and it offers the ability to do step through expression evaluation, among other really awesome features.
#THONNY PYTHON TUTORIAL FREE#
Thonny is a free Python Integrated Development Environment (IDE) that was especially designed with the beginner Pythonista in mind.