Advanced Python Programming
Advanced Python Programming
PREREQUISITES CATEGORY L T P C
NIL PC 3 0 0 3
Course Upon completion of this course, the students will be familiar with, Python syntax and its flow
Objectives control, Basic data structures like string, list, tuple, dictionary and set; Advanced data structures like
Numpy, data frames; Object oriented concepts of Python; Exception handling, file handling and
Web development
UNIT – I CONTROL FLOW STATEMENTS AND BASIC DATA 9 Periods
STRUCTURES
Data types, Variables, Operators, Conditional statements, Loops- while, for; Functions- structure, parameters types,
return types- single and multiple; packages and modules (modularization) - importing. Strings- indexing, slicing,
operators and methods, List- creation, accessing, deleting, updating operations, functions, methods, comprehension,
Tuple – creation, accessing, deleting, updating operations, conversion (list/string), methods and functions, Dictionary
– accessing, deleting, updating operations methods and functions, sets - accessing, deleting, updating operations
methods and functions. Case study – Anagrams, binary search, bubble sort, calendar, color picker, datetime,
dictionary, FLAMES, Fibonacci recursion, Hangman, Magic square, guess the word, Montehall.
UNIT – II ADVANCED DATA STRUCTURES IN PYTHON 9 Periods
Numpy - Creating Arrays, Data Type Objects, Numerical Operations Numpy Arrays: Concatenating, Flattening and
Adding Dimensions, Numpy: Boolean Indexing, Reading and Writing Data Files.
DataFrames - Accessing and Changing values, Pandas - groupby, Reading and Writing Data, Dealing with NaN,
Binning in Python and Pandas,Generators and Iterators. Case study – Analysis of graph, Gambling, gmplot, graph,
graph edge node, image compression, image transposition, image enhancing, making an image, Numpy matrix
operations, Tictactoe.
UNIT – III OBJECT-ORIENTED PARADIGM AND GUI 9 Periods
Classes and Objects, Method overloading and overriding, Data hiding, Data abstraction, Inheritance, copying, and
cloning objects. Introduction to GUI, create a web page using GUI functionality. Case study – Rock paper scissor,
snake and ladder.
UNIT – IV FILES AND EXCEPTION HANDLING 9 Periods
Files – opening, closing, reading and writing, renaming and deleting, file, and dictionary-related standard functions.
Exception handling – introduction, use of finally and else block, raise statement, user-defined exception. Case study -
simple web application creation using Python. Case study – time zones, substitution cipher.
UNIT – V WEB DEVELOPMENT 9 Periods
Creating models with SQLAlchemy, Views, Controllers, Securing App, RESTful API, Introduction about
PySpark, Deploying and Testing Flask App.
Contact Periods:
Lecture: 45 Periods Tutorial: 0 Periods Practical: 0 Periods Total: 45 Periods
TEXT BOOK :
1 Anuratha A. Puntambekar, “Programming with Python”, Technical publications, 1st edition, 2020.
2 BerndKlein, “Python Course Data Analysis With Python”, Bodenseo, 1st edition, 2021.
Daniel Gaspar, Jack Stouffer, “Mastering Flask Web Development- Build enterprise-grade, scalable
3 Python web applications”, packt publishing, 2nd edition, 2018.
4 https://spark.apache.org/docs/latest/api/python/getting_started/index.html
REFERENCES :
1 Jeeva Jose, “Taming Python by Programming”, Khanna Book Publishing Company, New Delhi, 1st edition, 2017.
2 Jeeva Jose, “Introduction to Computing and Problem Solving with Python”, Khanna Book Publishing Company,
New Delhi, 1st edition, 2016
3 Case study- ( Joy of computing in Python) - https://onlinecourses.nptel.ac.in/
4 https://www.udemy.com/course/complete-python-developer-zero-to-mastery/
5 https://www.coursera.org/learn/python-crash-course
CO2 Identify and apply the correct data structure for programming. K3
CO3 Analyze the suitability of Numpy and data frames for organizing data. K4
CO4 Program and debug object-oriented concepts. K2
CO5 Handle exceptions in the program and the operations in files K2
CAT1 40 20 - 20 20 - 100
CAT2 40 20 - 20 20 - 100
Individual
Assessment 1
/Case Study 1/ 10 20 20 20 20 10 100
Seminar 1 /
Project1
Individual
Assessment 2
/Case Study 2/ 10 20 20 20 20 10 100
Seminar 2 /
Project 2
ESE 40 40 - 20 - - 100