Python Course for Beginners (Easy and Detailed)
Module 1: Introduction to Python
What is Python?
Why use Python?
Installing Python (Windows, Mac, Linux)
Installing IDEs (IDLE, VS Code, PyCharm)
Writing your first Python program:
print("Hello, World!")
---
Module 2: Python Basics
Variables and Data Types
name = "Alice" # string
age = 25 # integer
height = 5.5 # float
is_student = True # boolean
Comments
# This is a single-line comment
"""This is a
multi-line comment"""
Input and Output
name = input("Enter your name: ")
print("Hello", name)
Type Casting
age = int(input("Enter your age: "))
---
, Module 3: Control Flow
if, elif, else statements
if age >= 18:
print("Adult")
else:
print("Minor")
Logical Operators (and, or, not)
Comparison Operators (==, !=, >, <, >=, <=)
---
Module 4: Loops
while loop
i=1
while i <= 5:
print(i)
i += 1
for loop
for i in range(5):
print(i)
break and continue
---
Module 5: Functions
Defining and calling functions
def greet(name):
print("Hello", name)
greet("Alice")
Return values
Default and keyword arguments
Module 1: Introduction to Python
What is Python?
Why use Python?
Installing Python (Windows, Mac, Linux)
Installing IDEs (IDLE, VS Code, PyCharm)
Writing your first Python program:
print("Hello, World!")
---
Module 2: Python Basics
Variables and Data Types
name = "Alice" # string
age = 25 # integer
height = 5.5 # float
is_student = True # boolean
Comments
# This is a single-line comment
"""This is a
multi-line comment"""
Input and Output
name = input("Enter your name: ")
print("Hello", name)
Type Casting
age = int(input("Enter your age: "))
---
, Module 3: Control Flow
if, elif, else statements
if age >= 18:
print("Adult")
else:
print("Minor")
Logical Operators (and, or, not)
Comparison Operators (==, !=, >, <, >=, <=)
---
Module 4: Loops
while loop
i=1
while i <= 5:
print(i)
i += 1
for loop
for i in range(5):
print(i)
break and continue
---
Module 5: Functions
Defining and calling functions
def greet(name):
print("Hello", name)
greet("Alice")
Return values
Default and keyword arguments