Python
Python
Course Objectives
COBJ1: Students will study the basic programming constructs (Data types, Calling
Functions) and how they make easy to model solutions to real world problems.
COBJ2: Students will study looping and reusable programming constructs.
COBJ3: Students will study the in-built functionalities of Strings, lists and tuples.
COBJ4: Students will study the file operations with suitable constructs so that they can
build applications with random file handing functionalities.
COBJ5: Students will study sequential and random file handing functionalities.
COBJ6: Students will study the basic GUI programming concepts and how they make easy
to model solutions to real world problems in better and goals of Python programming
language and get to know how and why these goals are important, relevant and realized.
Course Outcomes
CO1: have the ability to describe basic programming constructs - operators, conditional
and looping constructs with reusable mechanisms.
CO2: Have the ability to describe the Strings, lists, tuples and dictionaries.
CO3: Have the ability to draw the inferences using conditional control structures, Strings
and lists.
CO4: Have the ability to draw the inferences using tuples, dictionaries and file handling
functions.
CO5: Have the ability to describe the file handling concepts.
CO6: To apply and bring to ware full complement of basic GUI programming constructs
using ‘Python’.
SYLLABUS
UNIT-1 (Basics, Data Types, operators)
Loops: Selection: if and if-else Statements, if-else Statements, While loop, range () function,
for loop, nested loops, break, continue, program assignments on loops.
Functions: Syntax and basics of function, use of a function, Parameters and arguments
in a function local and global scope of variable, return statement, recursive function.
UNIT-3 (Strings, List- processing, Tuples and Dictionaries)
Strings- A String us a sequence, len, Traversal with for loop, String slice, Strings are
immutable, Searching, Looping and Counting, String methods, The in operator, String
Comparison.
Lists- List is a sequence, Lists are mutable, traversing a list, List operations, List slice,
List methods, Map filter and reduce, deleting elements, Lists and Strings, Objects and
values, Aliasing, List arguments.
Tuples- Tuples are immutable, tuples assignment, Tuple as return values, Variable-
length argument tuples, Lists and tuples, Dictionaries and Tuples, Sequence of
Sequences.
TEXT BOOKS/REFERENCES:
Text Book:
1. Kenneth A. Lambert. “Fundamentals of Python: First Programs”, 2 nd Edition,
Publisher: Cengage Learning
2. R. Nageswara Rao, “Core Python Programming”, dreamtech
Reference Books:
1. Wesley J. Chun. “Core Python Programming - Second Edition”, Prentice Hall.
2. John V Guttag. “Introduction to Computation and Programming Using Python”,
Prentice Hall of India