Syllabus
Unit 1
Introduction: Installing Python, basic syntax, interactive shell, editing, saving, and running a script. The concept of data types: variables, assignments, immutable variables, numerical types, arithmetic operators, and expressions. Comments in the program. Conditions, boolean logic, logical operators, ranges. Control statements: if-else, loops (for, while); short-circuit (lazy) evaluation. Functions: defining and calling functions, parameter passing, return values, default parameters, variable scope.
Unit 2
String manipulations: subscript operator, indexing, slicing a string. Lists, tuples, and dictionaries: basic list operators, replacing, inserting, removing an element, searching and sorting lists, dictionary literals, adding and removing keys, accessing and replacing values, traversing dictionaries.
Unit 3
Text files: reading/writing text and numbers from/to a file; creating and reading a formatted file (csv or tab-separated). Basic libraries in Python: NumPy, SciPy, Matplotlib, Pandas.
Objectives and Outcomes
Course Objectives
To introduce the syntactical constructs of Python programming Language. To understand advanced data organization constructs.
Course Outcomes
CO1: Understand the basic programming language constructs such as variables, control structures, functions etc. to write simple programs.
CO2: Understand and analyze the given code by tracing, identifying bugs and correcting them.
CO3: Apply advanced concepts such as lists, tuples, dictionaries and libraries to solve real world problems.
CO4: Develop python programs for given problem scenarios.
CO-PO Mapping
PO/PSO |
PO1 |
PO2 |
PO3 |
PO4 |
PO5 |
PO6 |
PO7 |
PO8 |
PO9 |
PO10 |
PO11 |
PO12 |
PSO1 |
PSO2 |
PSO3 |
CO |
CO1 |
1 |
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
CO2 |
1 |
1 |
2 |
|
2 |
|
|
|
|
|
|
|
|
1 |
1 |
CO3 |
1 |
2 |
2 |
|
2 |
|
|
|
|
|
|
|
1 |
2 |
2 |
CO4 |
2 |
2 |
2 |
|
3 |
|
|
|
|
|
|
|
1 |
2 |
2 |
Text Books / References
Text Book(s)
Guttag, John. Introduction to Computation and Programming Using Python: With Application to Understanding Data Second Edition. MIT Press, 2016.
Reference Book(s)
Charles Dierbach. Introduction to Computer Science Using Python: A Computational Problem-Solving Focus. 2e., Wiley, 2013.
Python 3 Object-oriented Programming – Second Edition by Dusty Phillips Publisher: Packt Publishing, 2015. Kenneth A. Lambert, “Fundamentals of Python: First Programs”, Cengage Learning, 2nd Edition, 2018.