Coding Robotics Week 1-2
Coding Robotics Week 1-2
• Duration: 4 Hours
• Goal: Introduce Python programming, including basic concepts like variables, user input, and
simple math operations, and have students complete two interactive projects.
Course Structure:
• What is Programming?
o Briefly explain programming and how it is used in daily life (e.g., apps, games, robots).
• Setting Up Python
o Show how to open Python (e.g., using Thonny or IDLE) and explain how to write and
run Python code.
• What is a Variable?
o Introduce Integers (whole numbers), Floats (decimal numbers), and Strings (text).
o Example: x = 5 + 3, y = 10 - 2, z = 5 * 2.
• Interactive Activity:
Let students write simple math programs:
x=5
y = 10
z=x+y
print(z)
o Introduce the input() function, which allows users to interact with the program.
• Interactive Activity:
Students write a program that asks for their name and age and prints a greeting:
• Interactive Activity:
Students modify their greeting program to include their favourite colour:
print(f"Hello {name}, you are {age} years old and your favourite colour is {colour}.")
• Goal: Build a simple math game that asks a user to answer basic math questions.
• Project Walkthrough:
o Code:
import random
print("Correct!")
else:
• Activity:
Let students create their own version of the math game with random questions.
• Project Walkthrough:
o Combine everything learned so far: user input, variables, and string manipulation.
o Example code:
print(f"Hello {name}, you are {age} years old and your favourite colour is {colour}.")
• Activity:
Students can customize their greeting program by adding fun details like their hobbies or
favourite food.
• Quick Review:
o Recap the key points: Variables, Data Types, User Input, Simple Math, and String
Manipulation.
• Q&A Session:
Answer any questions the students may have about Python or the projects they created.
• Challenge:
Give students a small coding challenge to try at home:
“Create a program that asks for your favourite number and then tells you what the number
multiplied by 10 is.”
1. Variables and Data Types: Understanding how to store and manipulate numbers and text.
2. User Input: How to collect data from users and use it in the program.
5. Building Fun Projects: Hands-on projects that make learning interactive and engaging.
Engaging Elements:
1. Hands-on Projects: Interactive math game and personalized greeting program keep kids
excited and learning by doing.
2. Real-world Application: Showing how coding is used in video games and apps makes the
content more relatable.
By the end of the course, students will have a solid understanding of basic Python programming and
have built two simple but fun projects!