Lesson Goals:
Introduce complete beginners to what Python is, how it works, and teach basic concepts like variables, data types, and simple printing- all without needing them to code yet.
1. Introduction to Python
So, What is Python?
- Python is a high-level programming language — meaning it's designed to be easy for humans to read and write.
- It’s used everywhere: creating websites, building video games, developing apps, analyzing data, and even controlling robots!
- Python’s clean and simple style makes it one of the most popular languages in the world, especially for beginners.
Why Learn Python First?
- Python’s syntax (the way you write it) is very straightforward compared to other languages.
- You can do powerful things with just a few lines of code.
- Big companies like Google, Netflix, and NASA all use Python- learning it can open doors to exciting careers in tech.
3. First Concepts: Variables and Data Types
What is a Variable?
- A variable is like a label you stick onto a piece of information so you can use it later.
- Imagine writing "Cookies" on a jar — that's like giving a name to the thing you want to keep track of.
Example:
name = "TutorTail"
age = 3
- Here, name stores the text "TutorTail" and age stores the number 3.
Why Use Variables?
- They make it easy to reuse, update, and organize your information.
4. Simple Output: Printing Things
The print() Function:
- print() is one of the first tools you’ll use in Python.
- It displays information in the console or terminal — think of it like “speaking” to whoever is running the program.
Example:
print("Welcome to Python Basics!")
Printing Variables
- You can also print values stored inside a variable:
name = "TutorTail"
print(name)
- This will show TutorTail in the output.
Mixing Text and Variables
- You can even mix them together with concatenation:
print("Hello, my name is " + name)