Week 1: Python Basics and Core Concepts
Lecture 1: Introduction to Python
- What is Python? Why learn it?
- Setting up the Python environment (Install Python, IDEs like VS Code or PyCharm)
- Writing the first Python program (
Hello, World!
) - Introduction to Python syntax: variables, data types (int, float, string, boolean)
- Introduction To Python
Lecture 2: Control Flow and Loops
- Conditionals:
if
,elif
,else
- Loops:
for
andwhile
loops - Using
break
andcontinue
- Introduction to
range()
function
Lecture 3: Functions
- Defining functions with
def
- Parameters and return values
- Function scope (local vs global variables)
- Lambda functions
Lecture 4: Data Structures
- Lists: creation, indexing, slicing, and common operations
- Tuples: creation, immutability, and basic operations
- Dictionaries: key-value pairs, methods, and operations
- Sets: uniqueness, adding/removing elements
Lecture 5: String Manipulation and File I/O
- String operations: concatenation, slicing, formatting
- String methods (e.g.,
split()
,join()
,replace()
,lower()
,upper()
) - File operations: open, read, write, close
- Exception handling with
try
,except
**Lecture 6: Object-Oriented Programming (OOP) Basics ( OPTIONAL ) **
- Introduction to classes and objects
- Attributes and methods
- Constructors (
__init__
method) - Inheritance and polymorphism
Lecture 7: Review and Practice
- Recap all concepts covered
- Answer questions and clear doubts
- Mini-project or simple exercises to reinforce learning
Week 2: Advanced Concepts and Problem Solving
Lecture 1: More on Functions and Libraries
- More on functions: recursion
- Introduction to Python standard libraries (e.g.,
math
,random
,time
) - Using libraries in practice (importing, calling functions)
Lecture 2: Modules and Packages
- Creating and importing modules
- Understanding Python packages
- Project structure: creating simple Python projects
Lecture 3: Introduction to Data Structures (Advanced)
- List comprehensions
- Nested data structures (lists within lists, dictionaries within lists, etc.)
- Introduction to algorithms (sorting and searching)
Lecture 4: Problem-Solving and Practice
- Solving simple coding problems (e.g., Fibonacci sequence, prime numbers)
- Walkthrough of solutions with explanations
Lecture 5: Project Day
- Work on a small project, like a number guessing game, a to-do list app, or a simple calculator
Lecture 6-7: Practice
- Solve problems on online coding platforms like LeetCode, Codewars, or HackerRank
- Focus on improving problem-solving skills and building confidence
This plan allows you to balance teaching the basics with some hands-on practice, preparing your friend for solving problems independently by