Python Programming - Syllabus
Python Programming - Syllabus
UNIT I:
UNIT II:
Control Flow Statements – If statement – If else statement – If elif else statement – nested if
statement - while loop – for loop – continue and break statements – catching exceptions using
try and except statement – syntax errors – exceptions – exception handling – Strings – str()
function - Basic string operations – String comparison – Built in functions using strings –
Accessing characters in string – String slicing – String joining – split() method – string
traversing.
UNIT III:
Functions – Built in functions – function definition and calling - return statement – void
function – scope and lifetime of variables – args and kwargs – command line arguments -
Tuples – creation – basic tuple operations – tuple() function – indexing – slicing – built-in
functions used on tuples – tuple methods – packing – unpacking – traversing of tuples –
populating tuples – zip() function - Sets – Traversing of sets – set methods – frozenset.
UNIT IV:
Lists: Using List- List Assignment and Equivalence – List Bounds- Slicing - Lists and Functions-
Prime Generation with a List. List Processing: Sorting-Flexible Sorting- Search- List
Permutations- Randomly Permuting a List- Reversing a List.
UNIT V:
Objects: Using Objects- String Objects- List Objects. Custom Types: Geometric Points-
Methods- Custom Type Examples- Class Inheritance. Handling Exceptions: Motivation-
Exception Examples- Using Exceptions - Custom Exceptions.
TEXT BOOKS: