Select a Subtopic
Python Course Overview
Day 1: Introduction to Python
Topics:
- What is Python? Why use it?
- Setting up Python environment
- Running Python scripts
- Python syntax, indentation, comments
- Variables and data types
- Input and output (print(), input())
Exercises:
- Create a script to take user input and print it back.
- Practice with different data types.
Day 2: Control Flow (if-else, loops)
Topics:
- Conditional statements (if, else, elif)
- Loops: for, while
- break, continue, pass statements
Exercises:
- Write a program to check if a number is even or odd.
- Create a multiplication table using loops.
Day 3: Functions and Modules
Topics:
- Defining functions (def)
- Function arguments and return values
- Built-in functions
- Importing and using modules
- Creating your own module
Exercises:
- Write a function to find the factorial of a number.
- Create a module with utility functions and import it.
Day 4: Data Structures (Lists, Tuples, Sets)
Topics:
- Lists, tuples, sets
- Adding/removing elements
- List comprehensions
- Tuple unpacking
Exercises:
- Create a list of 10 numbers and find the sum.
- Create a program to remove duplicates from a list using sets.
Day 5: Dictionaries and String Manipulation
Topics:
- Dictionaries: key-value pairs
- Adding/removing elements
- Iterating through dictionaries
- String operations (slicing, formatting)
Exercises:
- Create a dictionary of students with their grades.
- Write a program to reverse a string.
Day 6: File Handling
Topics:
- Reading and writing files
- File modes (r, w, a)
- File handling exceptions
Exercises:
- Write a program to read a text file and count the number of words.
- Create a log file to store error messages.
Day 7: Exception Handling
Topics:
- Try-except blocks
- Finally clause
- Custom exceptions
Exercises:
- Write a program to handle division by zero.
- Create a custom exception for invalid input.
Day 8: Object-Oriented Programming (OOP)
Topics:
- Classes and objects
- Constructors (__init__)
- Methods
- Inheritance
- Polymorphism
Exercises:
- Create a class to represent a bank account.
- Implement inheritance with a base class and a derived class.
Day 9: Working with Packages
Topics:
- Creating packages
- Installing packages using pip
- Virtual environments
Exercises:
- Create a package with utility functions.
- Install and use a popular Python package (requests, pandas, etc.).
Day 10: Regular Expressions
Topics:
- Introduction to re module
- Pattern matching
- Search, match, findall
- Replace using regex
Exercises:
- Validate an email address using regex.
- Extract phone numbers from a text file.
Day 11: Working with APIs
Topics:
- Introduction to APIs
- Using requests library
- Handling JSON responses
Exercises:
- Connect to a public API and fetch data.
- Parse JSON data and display it in a readable format.
Day 12: Database Interaction
Topics:
- Connecting to a database using sqlite3
- Creating tables
- Inserting, updating, and deleting records
- Querying data
Exercises:
- Create a simple database for storing user information.
- Write a program to perform CRUD operations.
Day 13: Multithreading and Multiprocessing
Topics:
- Introduction to threading
- Creating and starting threads
- Multiprocessing concepts
Exercises:
- Write a program to download multiple files concurrently.
- Create a CPU-intensive task using multiprocessing.
Day 14: Decorators and Generators
Topics:
- Function decorators
- Class decorators
- Generator functions
Exercises:
- Write a decorator to log function calls.
- Create a generator to yield Fibonacci numbers.
Day 15: Working with CSV and Excel Files
Topics:
- Reading and writing CSV files
- Working with Excel files using openpyxl and pandas
Exercises:
- Write a program to read a CSV file and display the data.
- Create an Excel report from a dictionary.
Day 16: Data Analysis with Pandas
Topics:
- DataFrames and Series
- Reading/writing CSV and Excel files
- Data cleaning and manipulation
Exercises:
- Load a dataset and perform basic analysis.
- Clean and transform data using Pandas.
Day 17: Data Visualization with Matplotlib and Seaborn
Topics:
- Creating plots with Matplotlib
- Advanced plots with Seaborn
- Customizing plots
Exercises:
- Create a bar chart, line chart, and pie chart.
- Use Seaborn to create a heatmap.
Day 18: Web Scraping with BeautifulSoup
Topics:
- Introduction to web scraping
- Using requests and BeautifulSoup
- Parsing HTML
Exercises:
- Scrape data from a website.
- Store scraped data in a CSV file.
Day 19: Machine Learning with Scikit-Learn
Topics:
- Introduction to machine learning
- Basic models: Linear Regression, Decision Tree
- Train-test split
Exercises:
- Build a linear regression model.
- Train and evaluate a decision tree model.
Day 20: Flask for Web Development
Topics:
- Creating a basic Flask app
- Handling routes and templates
- Form handling
Exercises:
- Build a simple to-do app with Flask.
- Create a REST API using Flask.
Day 21: Django Framework
Topics:
- Setting up Django
- Creating a Django project
- Models, views, templates
- Admin interface
Exercises:
- Build a blog application.
- Create a user authentication system.