Introduction to Python

What is Python?

Python is a widely used, general purpose, text-based programming language. Python is commonly used as a first text-based language because it’s very readable and you can get things done with less code than many other languages. Python has support for turtle graphics and other modules that make coding more fun and colourful.

Python is used for real projects in industry so it’s a useful language to learn. Our projects make use of the latest version - Python 3.


We recommend using the Trinket editor to create and run Python projects in a web browser. Trinket offers several advantages over using a text editor offline:

The first Python project (called About Me) explains the creating, saving and running a simple Python project in more detail.

Trinkets can be embedded in web pages, you can try the one below:

Note that Trinket uses Python 2 by default so we need the #!/bin/python3 line to tell it to use Python 3.

For general information on using Trinket in a Code Club see our Trinket Introduction and Trinket Accounts pages.