CS25301 Python Programming Syllabus:

CS25301 Python Programming Syllabus – Anna University UG Syllabus Regulation 2025

Course Objective:
Develop algorithmic problem-solving skills using Python by applying conditionals, loops, functions, data structures (lists, tuples, and dictionaries), and file input/output operations.

Data Types, Expressions, Statements
Python interpreter and interactive mode, debugging; values and types: int, float, Boolean, string, and list; variables, expressions, statements, tuple assignment, precedence of operators, comments

Control Flow, Functions, Strings
Conditionals: Boolean values and operators, conditional (if), alternative (if-else), chained conditional(if-elif-else); Iteration: state, while, for, break, continue, pass; Fruitful functions: return values, parameters, local and global scope, function composition, recursion; Strings: string slices, immutability, string functions and methods, string module; Lists as arrays.

Lists, Tuples, Dictionaries
Lists: list operations, list slices, list methods, list loop, mutability, aliasing, cloning lists, list parameters; Tuples: tuple assignment, tuple as return value; Dictionaries: operations and
methods; advanced list processing – list comprehension.

Files, Modules, Packages
Files and exceptions: text files, reading and writing files, format operator; command line arguments, errors and exceptions, handling exceptions, modules, packages.

Practical exercises:
Note: The examples suggested in each experiment are only indicative. The lab instructor is expected to design other problems on similar lines. The Examination shall not be restricted to the sample experiments listed here.

1. Write a python code to generate and plot standard continuous-time and discrete-time signals such as unit step, ramp, impulse, sinusoid, exponential signals. Also, apply signal operations such as shifting, folding and scaling on these signals.
2. Write a python code to apply algebraic operations to multiple signals. Also, implement time reversal and shifting on these signals.
3. Write a python code to compute and visualize Fourier Series of periodic waveforms.
4. Write a python code to apply Fast Fourier transform (FFT) for analyzing the spectrum of time-domain signals.
5. Write a python code to compute Laplace transform of continuous time elementary functions. Also, apply inverse Laplace transform to find time-domain response.
6. Write a python code to compute the output of LTI system using convolution.
7. Write a python code to sample a signal at different rates, above and below Nyquist rate and to demonstrate the aliasing effect. Also, reconstruct the original signal using interpolation techniques.
8. Write a python code to apply Discrete Fourier transform (DFT) to discrete signals and to analyze the DFT spectrum.
9. Write a python code to compute Z transform of discrete time signals and hence to simulate discrete time systems.

Weightage: Continuous Assessment: 50%, End Semester Examinations: 50%

Assessment Methodology: Quiz (5%), Project (15%), Assignment Programs (25%), Practical (25%), Internal Examinations (30%)

References:
1. Allen B. Downey, “Think Python: How to Think like a Computer Scientist”, 2nd Edition, O‟Reilly Publishers, 2016.
2. Karl Beecher, “Computational Thinking: A Beginner’s Guide to Problem Solving and Programming”, 1st Edition, BCS Learning & Development Limited, 2017.
3. Paul Deitel and Harvey Deitel, “Python for Programmers”, Pearson Education, 1st Edition, 2021.
4. G Venkatesh and Madhavan Mukund, “Computational Thinking: A Primer for Programmers and Data Scientists”, 1st Edition, Notion Press, 2021.
5. S. Esakkirajan, T. Veerakumar, B. N. Subudhi, Digital Signal Processing: Illustration Using Python. Springer: Singapore, 2024.