python
python
UNIT – II:
Input and Output statements: input () function, reading multiple values from the
keyboard in a single line, print () function, ‘sep’ and ‘end’ attributes, Printing formatted
string, replacement operator ({}). Illustrative examples on all the above topics.
UNIT – III:
Files: Opening files, Text files and lines, Reading files, searching through a file,
Using try, except and open, Writing files, debugging.
UNIT – IV:
Lists: Creation of list objects, Accessing and traversing the elements of list.
Important functions of list – len(), count(), index(), append(), insert(), extend(),
remove(), pop(), reverse() and sort(). Basic Operations on list: Aliasing and Cloning
of List objects, Mathematical Operators for list objects, Comparing list objects,
Membership operators on list, Nested Lists, List Comprehensions. Illustrative
examples on all the above topics.
UNIT – V:
Sets: Creation of set objects, Accessing the elements of set. Important functions of
set – add(), update(), copy(), pop(),remove(),discard(),clear(). Basic Operations on set -
Mathematical Operators for set objects, Membership operators on list, Set
Comprehensions. Illustrative examples on all the above topics.
UNIT – VI: