Sei sulla pagina 1di 3


Course Programme Core Credits: 2

Course Theory Lecture-Tutorial- 0-0-
Type: Practice: 0
Prerequisi Object Oriented Programming Continuous 30
tes: Using Java Evaluation:
Semester end 70
Total Marks: 100

Course Upon successful completion of the course, the student will

Outcomes be able to:
CO Understand the fundamentals of Python Programming
1 Language.
CO Recognize and construct common programming
2 idioms: variables, loop, branch statements, functions
and develop Python programs for a given application.
CO Analyze string functions and concept of files in python
3 programming.
CO Understand the concepts of searching and extracting
4 data using regular expressions.
Contributi P P P P P P P P P PO PO PO
on of O O O O O O O O O 10 11 12
Course 1 2 3 4 5 6 7 8 9
Outcomes CO H M M
towards 1
achieveme CO H M M L L M
nt of 2
Program CO M M M M L M L
Outcomes 3
(L-Low, CO M M M H L M L
Medium- 4
M, H-
Course UNIT I
Content Introduction- Why we program, creativity and motivation,
computer hardware architecture, Understanding
programming, Words and sentences, conversing with
Python, terminology: interpreter and compiler, writing a
program, what is a program, the building blocks of
programs, what could possibly go wrong, the learning
Variables, expressions and statements-Values and types,
variables, variable names and keywords, statements,
operators and operands, expressions, order of operations,
modulus operator, string operations, asking the user for
input, comments, choosing mnemonic variable names,
Conditional execution- Boolean expressions, logical
operators, conditional execution, alternative execution,
chained conditionals, nested conditionals, catching
exceptions using try and except, short circuit evaluation of
logical expressions, debugging.
Functions- Function calls, built-in functions, type
conversion functions, random numbers, math functions,
adding new functions, definitions and uses, flow of
execution, parameters and arguments, fruitful functions and
void functions, why functions, debugging.
Iteration- Updating variables, the while statement, infinite
loops, infinite loops and break, finishing iterations with
continue, definite loops using for, loop patterns, debugging.
Strings- A string is a sequence, getting the length of a
string using len, traversal through a string with a loop,
string slices, strings are immutable, looping and counting,
the in operator, string comparison, string methods, parsing
strings, format operator, debugging.
Files- Persistence, Opening Files, Text Files and Lines,
Reading Files, Searching through a File, Letting the user
choose the Filename, Using try, except and open, Writing
Regular Expressions: Character matching in regular
expressions, Extracting data using regular expressions,
Combining searching and extracting, Escape character.
Text books Text Book(s):
and [1]. Charles Severance, Python for Informatics-
Reference Exploring Information.
books Reference Books:
[1]. David M. Beazley. Python Essential Reference.
3rd Ed. Sams, Indianapolis. 2006. ISBN: 067232862

[2]. Wesley J. Chun. Core Python Programming.2nd

Ed. Prentice Hall, Upper Saddle River, NJ. 2007. ISBN:
[3].Allen B. Downey, Think Python - An Introduction to
Software Design, Green Tea Press Needham,
Massachusetts, Version 2.0.17, 2012
E- [1].
and other [2].
digital science-mitx-6-00-1x-0
material [3].