Prof. Parthasarathy P V

Prof. Parthasarathy P V

(M) +91 8951523822 (E-mail): sarathy.amc@gmail.com

COURSE CODE, NAME: 1BPLC205B : Python Programming

Click here to download text book... python textbook

Course outcome (Course Skill Set)

At the end of the course, the student will be able to: 
        CO1: Develop scripts using primitive language constructs of python. 
        CO2: Identify the methods to manipulate primitive python data structures. 
        CO3: Make use of Python standard libraries for programming. 
        CO4: Build scripts for performing file operations. 
        CO5: Illustrate the concepts of Object-Oriented Programming as used in Python.

Lecture Notes

Module-1

Syllabus Study Material Link

The way of the program: The Python programming language, what is a program? What is debugging? Syntax errors, Runtime errors, Semantic errors, Experimental debugging.

Variables, Expressions and Statements: Values and data types, Variables, Variable names and keywords, Statements, Evaluating expressions, Operators and operands, Type converter functions, Order of operations, Operations on strings, Input, Composition, The modulus operator.
Iteration: Assignment, Updating variables, the for loop, the while statement, The Collatz 3n + 1 sequence, tables, two-dimensional tables, break statement, continue statement, paired data, Nested Loops for Nested Data.
Functions: Functions with arguments and return values. Click here to download Study Material
Chapters: 1.1-1.7, 2.1-2.12, 3.3, 4.4, 4.5 Number of Hours: 08

Question Bank Module 1 : Click here to download


Internal Assessment Test 1 - 11-11-2025 Questions & Answers : Click here to download


Module-2

Syllabus Study Material Link

Strings: Working with strings as single things, working with the parts of a string, Length, Traversal and the for loop, Slices, String comparison, Strings are immutable, the in and not in operators, A find function, Looping and counting, Optional parameters, The built-in find method, The split method, Cleaning up your strings, The string format method.

Tuples: Tuples are used for grouping data, Tuple assignment, Tuples as return values, Composability of Data Structures.

Lists: List values, accessing elements, List length, List membership, List operations, List slices, Lists are mutable, List deletion, Objects and references, Aliasing, cloning lists, Lists and for loops, List parameters, List methods, Pure functions and modifiers, Functions that produce lists, Strings and lists, list and range, Nested lists, Matrices. Click here to download Study Material
Chapter: 5.1, 5.2, 5.3 Number of Hours: 08

Question Bank Module 2 : Click here to download


Module-3

Syllabus Study Material Link
Dictionaries: Dictionary operations, dictionary methods, aliasing and copying.
Numpy: About, Shape, Slicing, masking, Broadcasting, dtype.
Files: About files, writing our first file, reading a file line-at-a-time, turning a file into a list of lines, Reading the whole file at once, working with binary files, Directories, fetching something from the Web. Click here to download Study Material
Chapter: 5.4, 6.1-6.5, 7.1-7.8 Number of Hours: 08

Module-4

Syllabus Study Material Link
Modules: Random numbers, the time module, the math module, creating your own modules, Namespaces, Scope and lookup rules, Attributes and the dot Operator, Three import statement variants.
Mutable versus immutable and aliasing
Object oriented programming: Classes and Objects — The Basics, Attributes, Adding methods to our class, Instances as arguments and parameters, Converting an instance to a string, Instances as return values. Click here to download Study Material
8.1-8.8, 9.1, 11.1 Number of Hours: 08

Module-5

Syllabus Study Material Link
Object oriented programming: Objects are mutable, Sameness, Copying. Click here to download Study Material
Inheritance: Pure functions ,Modifiers, Generalization, Operator Overloading, Polymorphism. Click here to download Study Material
Exceptions: Catching Exceptions, Raising your own exceptions. Click here to download Study Material
11.2.2-11.2.4, 11.3.2-11.3.9, 12.1, 12.2 Number of Hours: 08

Textbooks
1. Peter Wentworth, Jeffrey Elkner, Allen B. Downey and Chris Meyers- How to think like a computer scientist: learning with python 3. Green Tea Press, Wellesley, Massachusetts,2020