Intro to Python for CBSE Grade 11
Intro to Python for CBSE Grade 11
11)
Learning Objectives:
Understand what Python is and where it is used. Explain why Python is popular and
beginner-friendly. Recognize basic Python syntax and keywords. Write and run their first Python
program.
What is Python?
Python is a high-level, interpreted programming language created by Guido van Rossum in 1991. It
is widely used for web development, artificial intelligence, data analysis, automation, and much
more.
Conditional Statement:
if age >= 18:
print("You are an adult.")
else:
print("You are a minor.")
Loop Example:
for i in range(5):
print("Number:", i)
Function Example:
def greet():
print("Welcome to Python!")
greet()
Mini Activity:
Write a Python program that prints your name and age.
Then, write a loop that prints numbers from 1 to 10.
Example Output:
My name is Riya.
I am 17 years old.
1
2
3 ... 10
Recap Questions:
1. Who created Python?
2. What makes Python easy to learn?
3. What is the output of: print(5 * 2)?
4. What does a loop do?
Homework / Practice:
1. Write a program to add two numbers.
2. Write a program that checks if a number is even or odd.
3. Write a function that prints “Good Morning”.