Learning Objectives
By the end of this module, learners will be able to:
Lesson Content
Syntax means rules of the language.
Python rules are simple:
Example:
print(“Python is easy”)
Comments explain code and are ignored by Python.
# This is a comment
print(“Hello”) # This prints text
Why comments matter:
Variables store data in memory.
Think of a variable as a labeled box.
age = 18
name = “Ali”
Here:
✅ Allowed:
❌ Not allowed:
Good examples:
student_name = “Sara”
total_marks = 85
name = “Sara”
print(name)
Python reads the variable and prints its value.
Hands-on Exercises