Python Introduction
Python is a simple, easy-to-learn programming language that’s perfect for beginners. It uses clean, readable syntax that feels like writing plain English, making it a great first language for anyone new to coding.
In the beginning, you’ll learn how to install Python on your computer, explore popular code editors like VS Code and PyCharm, and write your very first Python program.
You’ll also understand how Python code runs, how to use the Python interpreter, and get comfortable with basic tools that make coding fun and efficient.
This foundation sets you up for all the exciting things you’ll build with Python!
- Introduction to Python
- Basic Syntax and Operations
- Control Flow
- Data Structures
- Functions
- Object-Oriented Programming (OOP)
- File Handling
- Error Handling
- Modules and Packages
- Visual Studio Code
- Google Colab
- PIP and Virtual Environment
- Final Projects
- Mock Interview Preparation
1. Introduction to Python
Topics
- What is Python?
- History and use cases
- Features of Python
- Installing Python (Windows/Mac/Linux)
- Setting up IDEs: PyCharm, VS Code, IDLE
- Writing and running your first Python script
Assignments | Coding Exercise | Hands On
- Install Python and VS Code
- Write a “Hello, World!” program
- Quiz: Python overview and setup
- Short answer: Why is Python popular?
2. Basic Syntax and Operations
Topics
- Variables and data types
- Input and output using
input()
andprint()
- Arithmetic, comparison, and logical operators
- Comments and docstrings
Assignments | Coding Exercise | Hands On
- Build a simple calculator
- Take name and age as input and display formatted output
- Code: Temperature converter
- Quiz: Operators and data types
3. Control Flow
Topics
- Conditional statements:
if
,elif
,else
- Loops:
for
,while
- Control statements:
break
,continue
,pass
Assignments | Coding Exercise | Hands On
- Number guessing game
- Check if a number is even or odd
- Code: Factorial calculator using loops
- Quiz: Control flow questions
4. Data Structures
Lists
- Creation, indexing, slicing
- List methods:
append()
,pop()
,sort()
Tuples
- Immutable sequences
- Tuple vs List
Dictionaries
- Key-value pairs
- Dictionary methods:
get()
,items()
Sets
- Creating sets
- Set operations: union, intersection, etc.
Assignments | Coding Exercise | Hands On
- Contact book using dictionary
- Filter list of names starting with ‘A’
- Code manipulation tasks on lists/tuples
- Quiz: Data structure identification
5. Functions
Topics
- Defining and calling functions
- Positional, keyword, default arguments
- Return values
- Lambda functions
- Scope: local and global
Assignments | Coding Exercise | Hands On
- Fibonacci sequence using function
- Use
lambda
to filter even numbers - Debug a function
- Quiz: Function output prediction
6. Object-Oriented Programming (OOP)
Topics
- Classes and objects
- Constructors and destructors
- Instance vs class variables
- Instance, class, and static methods
- Inheritance, polymorphism, encapsulation
- Magic methods and operator overloading
Assignments | Coding Exercise | Hands On
- Create a
Student
class - Implement inheritance with
GraduateStudent
- Build a class-based calculator
- Short answer: OOP principles with examples
7. File Handling
Topics
- Opening, reading, writing, and closing files
- Using
with
statement - Working with CSV files using
csv
module
Assignments | Coding Exercise | Hands On
- Word counter for a text file
- Export dictionary data to CSV
- File reader script
- Quiz: File modes and operations
8. Error Handling
Topics
- Syntax vs runtime errors
try
,except
,finally
, andelse
- Custom exceptions
Assignments | Coding Exercise | Hands On
- Handle division by zero
- Raise custom exception for age validation
- Update previous code with exception handling
- Quiz: Exception hierarchy
9. Modules and Packages
Topics
- Built-in modules:
math
,random
,datetime
- Installing third-party modules with
pip
- Creating custom modules
- Package structure:
__init__.py
, imports
Assignments | Coding Exercise | Hands On
- Create a utility module
- Install and use
pandas
ornumpy
- Fix broken imports
- Quiz: Modules vs packages
10. Visual Studio Code
Topics
- Installing Python extension
- Setting Python interpreter
- Writing and running Python files
- Useful plugins (linting, auto-format)
11. Google Colab
Topics
- What is Google Colab?
- Writing code in notebooks
- Uploading/downloading files
- Sharing and collaboration
12. PIP and Virtual Environment
Topics
- Installing packages with
pip
- Upgrading/uninstalling packages
- Creating virtual environments with
venv
- Activating/deactivating environments
requirements.txt
for dependencies
Assignments | Coding Exercise | Hands On
- Create a virtual environment
- Install and use
requests
module to fetch API data - Submit working virtual environment project
- Quiz: pip commands and usage
13. Final Projects
Project 1: Student Management System
Description:
A command-line app to:
- Add, view, and delete student records
- Store data in a text or CSV file
- Modularize using functions
Skills Used:
- Input/output
- Lists, dictionaries
- File handling
- Functions
Evaluation:
- Functionality and usability
- Use of modular programming
Project 2: Bookstore Inventory with OOP
Description:
OOP-based system to:
- Create a class
Book
andInventory
- Add, delete, and update book entries
- Save to and load from CSV
Skills Used:
- OOP principles
- Exception handling
- File operations
Evaluation:
- Proper use of classes and inheritance
- Clean code structure
- Error handling implementation
14. Mock Interview Preparation
Key Activities
-
Resume Tips
How to highlight Python skills and projects. -
Interview Q&A
Practice common Python questions:- Data types
- Control flow
- OOP
- Exceptions
-
Coding Practice
Solve 5–6 real interview-style problems (e.g., string reversal, frequency count). -
Mock Interviews
- 1-on-1
- Includes 2 coding + 3 theory questions
-
Feedback Session
Discuss strengths and improvement areas.