Opening
🤔 What Do You Think?

- Colorful illustration of a robot typing on a giant keyboard with code floating around it
Slide 1
What is Python and Why Use It?
- Python is a programming language, like a special language that helps us talk to computers and tell them what to do.
- It is popular because it's simple to read and write, which makes it great for beginners and professionals alike, like using English to give clear instructions.
- People use Python to build websites, create games, and even control robots, showing how it helps with many real-world jobs.
- Python
- — A computer language used to write instructions.
- Programming language
- — A special language to give commands to a computer.
Check for understanding
Check Your Understanding
Slide 2
Setting Up Python and Running Your First Code
- To write Python code, you need a Python environment, which is a place where you type and run your instructions, like an editor or an online tool.
- The Python interpreter is a program that reads your code and tells the computer what to do, similar to a translator between you and the machine.
- Here is an example: typing print("Hello, World!") and running it will show the words Hello, World! on the screen.
- Python environment
- — A place to write and run Python code.
- Interpreter
- — Program that runs Python code and shows results.
- print()
- — A command that shows text on the screen.
Check for understanding
Check Your Understanding
Slide 3
How Python Uses Indentation and Syntax
- Python uses indentation (spaces at the start of lines) to show which lines of code belong together, instead of curly braces or semicolons like other languages.
- For example, a print statement inside a function is indented to show it's part of that function's instructions.
- Writing code with correct indentation helps Python understand your program, just like punctuation helps us understand sentences.
- Indentation
- — Spaces at line start to group code.
- Syntax
- — Rules that tell how code should be written.
Check for understanding
Check Your Understanding
Check for understanding
Solo Run: Python Basics
Exit check