ā Python Programming Syllabus for B.Tech
Module 1: Introduction to Python
-
History of Python
-
Features of Python
-
Python installation and setup
-
Writing your first Python program
-
Python IDEs (IDLE, VS Code, Jupyter)
-
Basic syntax, indentation, and comments
Module 2: Variables, Data Types & Operators
-
Variables and constants
-
Data types: int, float, string, bool, complex
-
Type conversion and casting
-
Operators: arithmetic, comparison, logical, bitwise, assignment
Module 3: Control Structures
-
Conditional statements (
if
,if-else
,elif
) -
Loops:
for
,while
-
break
,continue
,pass
-
Nested loops and conditional blocks
Module 4: Functions
-
Defining and calling functions
-
Arguments and return values
-
Types of arguments: default, keyword, variable-length
-
Lambda functions
-
Recursion
Module 5: Data Structures in Python
-
Strings: indexing, slicing, built-in methods
-
Lists: indexing, slicing, built-in methods
-
Tuples: immutability, operations
-
Dictionaries: keys, values, items
-
Sets: operations, methods
-
List comprehension
Module 6: Object-Oriented Programming
-
Classes and Objects
-
Constructor (
__init__
) -
Attributes and methods
-
Inheritance
-
Polymorphism
-
Encapsulation
Module 7: File Handling
-
Reading from and writing to files
-
File methods (
read()
,write()
,readline()
, etc.) -
Working with file paths
-
with
statement for file operations
Module 8: Exception Handling
-
Types of errors
-
Try-except block
-
finally
andelse
-
Raising exceptions
-
Custom exceptions
Module 9: Modules and Packages
-
Importing built-in modules (math, random, datetime, etc.)
-
Creating and using user-defined modules
-
pip
and installing external packages -
Python Package Index (PyPI)
Module 10: Introduction to Libraries (Optional / AI-focused)
-
NumPy
for numerical computing -
Pandas
for data analysis -
Matplotlib
/Seaborn
for data visualization