Python Programming (2:0:2)
Course Outcome
Acquire programming skills in core Python. Acquire Object Oriented Skills in Python.
Develop the skill of designing Graphical user Interfaces in Python.
Develop an ability to write database applications in Python.
Course Content
Unit-I
Introduction: History of Python, Need of Python Programming, Applications Basics of Python
Programming Using the REPL(Shell), Running Python Scripts, Variables, Assignment,
Keywords, Input-Output, Indentation.
Unit-II
Types, Operators and Expressions: Types – Integers, Strings, Booleans; Operators- Arithmetic
Operators, Comparison (Relational) Operators, Assignment Operators, Logical Operators,
Bitwise Operators, Membership Operators, Identity Operators, Expressions and order of
evaluations Control Flow- if, if-elif-else, for, while break, continue, pass.
Data Structures Lists: Operations, Slicing, Methods; Tuples, Sets, Dictionaries, Sequences,
Comprehensions.
Unit-III
Functions: Defining Functions, Calling Functions, Passing Arguments, Keyword Arguments,
Default Arguments, Variable-length arguments, Anonymous Functions, Fruitful Functions
(Function Returning Values), Scope of the Variables in a Function- Global and Local Variables.
Modules: Creating modules, import statement, from. Import statement, name spacing, Python
packages, Introduction to PIP, Installing Packages via PIP, Using Python Packages
Unit-IV
Object-Oriented Programming OOP in Python: Classes, ‘self-variable’, Methods, Constructor
Method, Inheritance, Overriding Methods, Data hiding, Error, and Exceptions: Difference
between an error and Exception, Handling Exception, try except for block, Raising Exceptions,
User Defined Exceptions.
Brief Tour of the Standard Library: Operating System Interface – String Pattern Matching,
Mathematics, Internet Access, Dates and Times, Data Compression, Multithreading, GUI
Programming, Turtle Graphics Testing: Why testing is required ?, Basic concepts of testing, Unit
testing in Python, Writing Test cases, Running Tests.
Reference Books
1. Charles Dierbach, "Introduction to Computer Science Using Python", 1st Edition, Wiley
India Pvt Ltd.
2. Mark Lutz, “Programming Python”, 4th Edition, O’Reilly Media, 2011.
3. Wesley J Chun, “Core Python Applications Programming”, 3rd Edition, Pearson Education
India, 2015.
4. Roberto Tamassia, Michael H Goldwasser, Michael T Goodrich, “Data Structures and
Algorithms in Python”,1st Edition, Wiley India Pvt Ltd, 2016.
5. ReemaThareja, “Python Programming using problem solving approach”, Oxford
university press, 2017.
6. Python Programming: A Modern Approach, VamsiKurama, Pearson
7. Learning Python, Mark Lutz, Orielly
8. Introduction to Python, Kenneth A. Lambert, Cengage.