Advert description
Week 1: Introduction to Python and Setup
Topics:
What is Python?
Installing Python and setting up IDEs (e.g., VSCode, PyCharm, or online editors)
Understanding the Python interpreter and running scripts
Hands-on: Writing your first "Hello, World!" program
Assignment: Basic print statements and simple calculations
Week 2: Variables and Data Types
Topics:
Variables: naming rules and conventions
Data types: strings, integers, floats, booleans
Type conversion
Hands-on: Simple programs using different data types
Assignment: Create a program that stores and displays user information
Week 3: Control Flow - Conditionals
Topics:
if, elif, else statements
Logical operators (and, or, not)
Hands-on: Decision-making programs
Assignment: Write a simple grading system
Week 4: Control Flow - Loops
Topics:
for loops
while loops
Loop control statements (break, continue)
Hands-on: Iterating over sequences, creating simple loops
Assignment: Write a program to generate multiplication tables
Week 5: Functions
Topics:
Defining and calling functions
Function arguments and return values
Scope of variables (local vs. global)
Hands-on: Creating reusable functions
Assignment: Write a function to calculate the factorial of a number
Week 6: Lists and Tuples
Topics:
List operations (adding, removing, slicing)
Iterating through lists
Introduction to tuples
Hands-on: Creating and manipulating lists
Assignment: Write a program to manage a shopping list
Week 7: Dictionaries and Sets
Topics:
Dictionary operations (adding, updating, retrieving)
Iterating through dictionaries
Introduction to sets
Hands-on: Storing and retrieving key-value pairs
Assignment: Create a contact book using dictionaries
Week 8: String Manipulation
Topics:
String methods (e.g., .split(), .join(), .replace())
String formatting (f-strings, .format())
Hands-on: Working with strings and text data
Assignment: Write a program to analyze a block of text
Week 9: File I/O (Input/Output)
Topics:
Reading from and writing to files
Error handling with try and except
Hands-on: Creating and reading .txt files
Assignment: Write a program that logs user data to a file
Week 10: Modules and Libraries
Topics:
Importing modules (math, random, datetime