Hour of Code

Landing Page Headers

Try a free lesson for Hour of Code

Explore text outputs and print statements with Lesson 1 from Python in Pieces for the Hour of Code. Python in Pieces is a coding platform designed to transition your students from block-based coding to Python with guided lessons, open-ended activities and the ability to translate block-code to Python in both directions.

In this lesson students will learn:

  • What a 'string' is in Python
  • The use of the print block to print strings and numbers
  • How to add strings and how to multiply a string by a number
  • How to format text with line-breaks

At each stage of the lesson students will learn discreet skills and in the final stage students will be introduced to the design elements of Python in Pieces, where they can learn some simple ways to control the elements on the screen.

The step-by-step lesson is designed to take 45 minutes, depending on the students abilities. There's no need to sign-up or register, simply click the "start your free coding lesson" button to begin.

Start your free coding lesson

Whole school subscription

Python in Pieces is an interactive coding environment, designed to build student and teacher confidence in the text-based coding language of Python. With the ability to easily translate from block-code to Python, in BOTH directions, students will quickly become empowered to develop their learning from block-code to the text based language.

Cloud-based, Python in Pieces utilises separate interfaces for teachers and students, ideal for in-class or remote learning. The guided lessons allow students to manage their own learning and teacher solution guides enable teachers to support student learning at every step. Each task is marked by the program itself in real time, allowing students to move to the next task at their own pace. The full version also offers teachers a means of providing students with instant feedback.

Free home access

3 levels with 6 guided lesson activities

Separate teacher and student interface

Detailed teacher guides

Data to monitor student progression

Showcase work with other users and wider school community

Compatibility with Micro:bit.

What our current users think

The pupils are aware of the need to learn both a high level language such as Python (which is very much in vogue currently), and of the broader advantages of learning more fundamental concepts such as algorithmic thinking, abstraction and decomposition. Python in Pieces matches this need.

Stephen Trask, Computer Science Consultant
Harris Federation
Stephen Trask, Computer Science Consultant