Week 1

Hello, Python!

Aim: Make the computer speak using your first Python commands.

New coding words

  1. program
  2. command
  3. print
  4. string
  5. bug

What the coding words mean

  1. program: A set of instructions for a computer.
  2. command: An instruction that tells a computer what to do.
  3. print: print() displays words or numbers on the screen.
  4. string: A piece of text written inside quotation marks, like "Hello!".
  5. bug: A mistake in a program that makes it work incorrectly.
Code along

Make Python speak

Read the code, then select Run my code to see Python speak in Output (the Shell).

Python coding spaceReady to run
.py

Tab indents. Esc then Tab leaves the editor. Ctrl/⌘ + Enter runs your code.

Output (Shell)What your program does
Select Run my code to try this program.
Opening your coding space…Each activity has its own saved code.
Mini project

Talking Robot

Create a robot that introduces itself, counts to three and tells a joke.

Python coding spaceReady to run
.py

Tab indents. Esc then Tab leaves the editor. Ctrl/⌘ + Enter runs your code.

Output (Shell)What your program does
Select Run my code to try this program.
Opening your coding space…Each activity has its own saved code.

Your mini-project to-do list

0 of 3 completed

Complete these activities in the mini-project editor above. After each change, select Run my code to check your program’s output or drawing.

Save your finished mini project

Select Download my work and save the file as week_01_talking_robot.py. The .py ending tells us that the file contains Python code. Keep this file as a copy of your finished program.

Debugging detective

Chi Opara, your course guide

Knowledge check

Question 1

Which command displays a message?

Choose one answer
Question 2

Fix the bug: print("I can code!)

Your answers are checked in this browser and are not submitted.

How are you getting on so far?

My checklist

Week 1 adventure complete?

This progress is saved only in this browser.