About
About
PROGRAMMING
CORE 3 1 0 4
Course Outcomes
After completion of this course, students will be able to
CO1 Discuss various control structures and data structures in (Cognitive level : Understand)
Python.
CO2 Describe procedural and object oriented concepts (Cognitive level : Understand)
CO3 Implement GUI programming, and exception handling (Cognitive level : Apply)
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12
CO1 1 1 2 2 2
CO2 2 2 2 2 2 2
CO3 2 2 3 2 2
CO4 3 2 2 3 3 2 2
CO5 2 2 2 3 3 2 2
20
22-382-0105 PYTHON PROGRAMMING
UNIT I (6 Hours)
Introduction to computer programming: Python as a programming language. Python Data Types,
Strings: Basic Operation, Indexing and Slicing, String Methods, String Formatting Expressions,
String Formatting Method Calls, Comments, Expressions, Variables, and Assignments, Control
Structures, Looping and Branching.
UNIT II (8 Hours)
List: Basic List Operations, List Iteration and Comprehensions, Indexing, Slicing, Two
Dimensional Lists, Iterating through Two Dimensional Lists. Dictionaries: Basic Dictionary
Operations, Changing Dictionaries in Place, Methods, Example: Movie Database. Tuples and Sets
(Properties, Operators, and Methods). User-Defined Functions, Lambda Function, Zip Function,
Parameter Passing (thrusting mutable and immutable parameters). Recursion, Memory
Management During Recursive Function Calls. Global versus Local Namespaces.
UNIT IV (12 Hours)Stack and Queue, Tree, Linked List : Operations (search, insert, delete).
Decorators in Python. Database Programming in Python with sqlite3: Creating Tables, Querying
(Inserting Tuples, Selecting Rows and Updating Tuples), Using Cursor to Iterate over Selected
Tuples. Files: Opening Files, Using FileText and Binary Files, Storing Python Objects in Files:
Conversions, Storing Native Python Objects: pickle, Storing Python Objects in JSON Format,
Storing Packed Binary Data: struct. NumPy: Creating Arrays (array() and arange(), reshape(),
sum(), min() and max() methods, Item wise arithmetic operations. Pattern Matching Using Regular
Expressions: Python Standard Library Module RE.
UNIT V (8 Hours)
Introduction to Pandas: Pandas data structures – Series and DataFrame, Data wrangling using
pandas: Loading a dataset into a dataframe, Selecting Columns from a dataframe, Selecting Rows
from a dataframe, Adding new data in a dataframe, Deleting data from a dataframe. Introduction to
Matplotlib: Scatter plot, Line plot, Bar chart, Histogram, Box plot. Visualize Distributions With
Seaborn. Web scraping: Beautiful Soup.
21
TEXT BOOKS/REFERENCES
1. Mark Lutz, ‘Learning Python’, 5th Edition, O'Reilly Media, Inc.
2. LjubomirPerkovic, “Introduction to Computing Using Python: An Application
Development Focus”, Wiley, 2012.
3. Charles Dierbach, “Introduction to Computer Science Using Python: A Computational
Problem-Solving Focus”, Wiley, 2013.
4. Kenneth A Lambert., Fundamentals of Python : First Programs, 2/e, Cengage
Publishing,2016
Web Resource:
1. https://onlinecourses.nptel.ac.in/noc19_cs41/preview
2. https://nptel.ac.in/courses/106106212
3. https://www.coursera.org/specializations/python-3-programming
4. https://www.coursera.org/specializations/python
22