1. What is Python?
Python is a programming language.
Programming language = A way to talk to the computer.
🗣️
Just like:
💻
We talk in English
Computer understands Python
Python is used in:
Websites (like Instagram)
Search engines (like Google)
Movies & streaming (like Netflix)
AI, apps, games, automation
Why Python is popular?
✔ Easy to read
✔ Looks like English
✔ Less complicated
2. Print Statement (Showing Output)
If you want the computer to show something:
Copy code
Python
🎤
print("Hello World")
Real-life example: Think of print() like speaking through a mic
Whatever you write inside → comes to screen.
You can print numbers also:
Python
print(10)
print(5 + 3)
3. Variables (Storage Box Concept)
💧
Variable = A box to store value.
Real-life example: You have a container labelled "water"
Inside you store water.
Same in Python:
Python
name = "Velvet"
age = 18
Here:
name is box
"Velvet" is value inside box
, Important: No need to tell type separately. Python understands automatically.
4. Data Types (Types of Information)
Different kinds of data exist.
1️⃣ Integer (int)
Whole numbers.
Python
x = 10
2️⃣ Float
Decimal numbers.
Python
pi = 3.14
3️⃣ String (str)
Text inside quotes.
Python
name = "Velvet"
4️⃣ Boolean (bool)
True or False.
Python
is_student = True
Real-life example:
Age → int
Temperature → float
Name → string
Passed or not → boolean
5. Taking Input from User
If you want user to type something:
Copy code
Python
name = input("Enter your name: ")
print("Hello", name)
Important: Input always comes as string.
If number needed:
Python
age = int(input("Enter age: "))
Real-life example: ATM machine asking PIN → that’s input.
6. Operators (Doing Work)
Operators = Symbols that perform action.
Arithmetic Operators
Copy code
Python