Lesson 1: Introduction to Programming & Python
Topics Covered:
- What is a program?
- Installing Python or using an online editor (like Replit or Trinket)
- Writing your first Python script using
print()
- Overview of the course and final game project
What is a Program?
A program is a set of instructions a computer can follow to do something. Programming is how we tell computers what to do.
Installing Python
You can download Python from python.org or use an online editor like:
Your First Python Program
Type this into your Python editor:
print("Hello, world!")
This program tells the computer to display the message Hello, world!
Practice Challenge
Write your own message using print()
. Example:
print("My name is Alex and I'm learning Python!")
Activity:
- Open Python or an online editor.
- Write 3 different print statements with your name, favorite color, and a fun fact.
- Run the program and see what it does!