20cs1201 - Python Programming
20cs1201 - Python Programming
UNIT - II
Control Flow Statements: if and nested if, for, while Continue and Break statements,
Catching Exceptions.
UNIT - III
Strings: Creating and Storing Strings, Basic String Operations, Access characters by
Index, Slicing and Joining of Strings, String Methods and Formatting Strings.
1
Lists: Creating Lists, List operations, indexing and Slicing, Built-in Functions, List
Methods, del() vs pop()
UNIT - IV
Dictionaries: Creation, Accessing and modifying key-value pairs, Built-in functions
used on dictionaries, Dictionary methods, del statement.
Tuples and Sets: Creation of Tuples, Basic Tuple Operations, Indexing and Slicing in
Tuples, Built-in functions, Relationship among Tuples, Lists and Dictionaries, Tuple
Methods, aggregation with zip(), Sets, Set Methods and Frozen sets.
UNIT - V
Files: Types, Creating, Reading Text data and methods used for it, Manipulating Binary
and CSV files, pickling (serialization of objects), os and os.path modules.
UNIT - VI
Object-Oriented Programming: Classes and Objects and Creating them, The
Constructor Method, Classes with Multiple Objects, Class Attributes versus Data
Attributes, Encapsulation, Inheritance, Polymorphism.
Text Books:
1. Gowrishankar. S, Veena.A, “Introduction to Python Programming”, CRC Press,
Taylor and Francis group,2019.
1. https://nptel.ac.in/courses
E-Resources 2. https://freevideolectures.com/university/iitm
3. https://wiki.python.org/moin/PythonBooks