Course Title: 
Python Programming
Course Code: 
Year Taught: 
Undergraduate (UG)
School of Arts and Sciences
School of Engineering

'Python Programming' is a course offered in the sixth semester of B. C. A. (Bachelor of Computer Applications) program at Amrita Vishwa Vidyapeetham.

Unit 1

Introduction to Python: Python variables, Python basic Operators, Understanding python blocks. Python Data Types, Declaring and using Numeric data types: int, float etc.

Unit 2

Python Program Flow Control Conditional blocks: if, else and else if, Simple for loops in python, For loop using ranges, string, list and dictionaries. Use of while loops in python, Loop manipulation using pass, continue, break and else. Programming using Python conditional and loop blocks.

Unit 3

Python Complex data types: Using string data type and string operations, Defining list and list slicing, Use of Tuple data type. String, List and Dictionary, Manipulations Building blocks of python programs, string manipulation methods, List manipulation. Dictionary manipulation, Programming using string, list and dictionary in-built functions. Python Functions, Organizing python codes using functions.

Unit 4

Python File Operations: Reading files, Writing files in python, Understanding read functions, read(), readline(), readlines(). Understanding write functions, write() and writelines() Manipulating file pointer using seek Programming, using file operations. Database Programming: Connecting to a database, Creating Tables,INSERT, UPDATE, DELETE and READ operations, Transaction Control,Disconnecting from a database, Exception Handling in Databases.

Unit 5

Python packages: Simple programs using the built-in functions of packages matplotlib, numpy, pandas etc. GUI Programming: Tkinter introduction, Tkinter and PythonProgramming, Tk Widgets, Tkinter examples. Python programming with IDE.


  • Wesley J. Chun, “Core Python Applications Programming”, 3rd Edition , Pearson Education, 2016
  • Charles Dierbach, “Introduction to Computer Science using Python”, Wiley, 2015
  • Jeeva Jose &P.SojanLal, “Introduction to Computing and Problem Solving with PYTHON”, Khanna Publishers, New Delhi, 2016
  • Downey, A. et al., "How to think like a Computer Scientist: Learning with Python", John Wiley, 2015
  • Mark Lutz, “Learning Python”, 5th edition, Orelly Publication, 2013, ISBN 978- 1449355739
  • John Zelle, “Python Programming: An Introduction to Computer Science”, Second edition, Course Technology Cengage Learning Publications, 2013, ISBN 978- 1590282410
  • Michel Dawson, “Python Programming for Absolute Beginers” , Third Edition, Course Technology Cengage Learning Publications, 2013, ISBN 978-1435455009
  • David Beazley, Brian Jones., “Python Cookbook”, Third Edition, Orelly Publication, 2013, ISBN 978-1449340377