Step-by-Step Python Learning Plan
Step 1: Build Basic Computer Understanding
Before coding, make sure your son knows:
What is a program?
What is a programming language?
What is Python used for?
👉 Simple idea: “Python is used to give instructions to a computer.”
Chapter 1: Introduction to Python
Python is a high-level programming language used to write programs that a computer
can understand and execute. Python is easy to learn and is used in:
Software development
Web development
Artificial Intelligence
Data Science
Automation
First Python Program
print("Hello World")
Explanation:
print() is used to display output on the screen.
"Hello World" is a string (text).
Chapter 2: Variables
A variable is a container used to store data.
Example:
name = "Rahul"
age = 14
marks = 85.5
Here:
name stores text
age stores number
marks stores decimal number
Rules for Variable Names:
Must start with a letter or underscore
Cannot start with number
No spaces
Use simple names
Valid:
name
age1
student_marks
Invalid:
1name
student name
Chapter 3: Data Types
Python has different types of data.
1. Integer (int)
Integer means whole numbers (no decimal).
Examples:
a = 10
b = -5
c=0
Explanation:
10 is integer
-5 is integer
0 is integer
2. Float (float)
Float means decimal numbers.
Examples:
marks = 85.5
temperature = 36.7
pi = 3.14
Explanation:
Numbers with decimal point are floats.
3. String (str)
String means text or characters written inside quotes.
Examples:
name = "Naveen"
school = "ABC School"
message = "Hello"
Important:
Strings must be inside:
" " or ' '
Example:
print("Hello")
print('Hello')
4. Boolean (bool)
Boolean has only two values:
True
False
Examples:
a = True
b = False
Example Program:
print(10 > 5)
Output:
True
Because 10 is greater than 5.
Chapter 4: Taking Input from User
We use input() function to take input.
Example:
name = input("Enter your name: ")
print("Hello", name)
Example 2:
age = int(input("Enter age: "))
print(age)
Note:
input() always takes string
Use int() to convert to number
Chapter 5: Operators
Arithmetic Operators
Operator Meaning
+ Addition
- Subtraction
* Multiplication
/ Division
% Modulus
** Power
Example:
a = 10
b=5
print(a + b)
print(a - b)
print(a * b)
print(a / b)
Chapter 6: Conditional Statements (if, else)
Used for decision making.
Example:
marks = int(input("Enter marks: "))
if marks >= 40:
print("Pass")
else:
print("Fail")
Example 2:
num = int(input("Enter number: "))
if num % 2 == 0:
print("Even Number")
else:
print("Odd Number")
Chapter 7: Loops
For Loop
Used to repeat something multiple times.
for i in range(1, 6):
print(i)
Output:
1
2
3
4
5
While Loop
i=1
while i <= 5:
print(i)
i=i+1
Chapter 8: Lists
List is used to store multiple values.
Example:
marks = [80, 75, 90, 85]
print(marks)
print(marks[0])
Index starts from 0
Index Value
0 80
1 75
2 90
3 85
Chapter 9: Functions
Function is a block of code that runs when called.
Example:
def greet():
print("Hello Student")
greet()
Recommended Study Plan
Day Topic
Day 1 Introduction + Print
Day 2 Variables
Day 3 Data Types
Day 4 Input
Day 5 Operators
Day 6 If Else
Day 7 Loops
Day 8 Lists
Day 9 Functions
Day 10 Practice Programs
Practice Programs for Student
Ask him to write programs for:
1. Addition of two numbers
2. Even or Odd
3. Largest of two numbers
4. Multiplication table
5. Sum of first 10 numbers
6. Simple calculator
7. Student marks and grade