CAP2009
Python Programming L T P C
Version 1.0 Date of Approval: 3 0 0 3
Pre-requisites/Exposure
Co-requisites
Course Objectives
The objective of this course is
1. To study the structure of python programming language.
2. To implement python programs to solve engineering problems
3. To solve physical problems using computer simulation
Course Outcomes
On completion of this course, the students will be able to
CO1. Program in python programming language
CO2. Design physical problems in terms of simulation models
CO3. Solve simulation models using python programming
Catalog Description
Python programming language offers a rich set of libraries for solving scientific problems.
Numpy can be used for numerical problems, Scipy can be used for modelling and solving
using numerical solutions, Matplotlib can be used for plotting variety of graphs for better
visualization and pydata/pandas can be used for data analysis. Physical problems can be
converted into a simulation model to find physically relevant solutions, which can in-turn
be used in designing the engineering experiments/products. The course will focus in
teaching relevant topics which can be used by engineers from all branches, to solve
physical problems using python programming.
Course Content
Unit I Introduction to Python
Structure of python programs, ipython notebook environment, different data types, aming
and using variables, making and using lists and arrays, strings, functions, loops, file input-
output functions, exceptions.
Unit II Numpy and Matplotlib
Array based computation, Introduction to Numpy module, Using matrix methods to solve system of
equations, Plotting graphs using matplotlib, modifying graph features, 2D and 3D graphs.
Unit IIIScipy
Introduction to Scipy module, using linalg sub-module, using interpolate sub-module,
using integrate sub-module, using fftpack sub-module, using optimize sub-module.
Unit IV Pandas
Introduction to basic statistics, series and dataframe data structures, Defining tables as
structured data and computation using them, Statistical analysis on data.
Unit VScientific simulation
Basics of modelling for simulation-identification and classification of variables, writing equations,
choosing methods to solve equations, implementation of python code for solving equations, data
visualizations, reporting the complete solution, inference results.
Text Books:
1. Hans PetterLangtangen (2012), A Primer on Scientific Programming Using
Python, Springer Science & Business Media, ISBN- 9783642302930
Reference Books
1. Wes McKinney (2012), Python for Data Analysis, "O'Reilly Media, Inc.", ISBN – 9781449319793
2. Sergio J Rojas G, Erik A Christensen, Francisco J. Blanco-Silva (2015), Learning SciPy for
Numerical and Scientific Computing, Packt Publishing Ltd., ISBN- 9781783987719
3. AlexandreDevert (2014), Matplotlib Plotting Cookbook, Packt Publishing Ltd., ISBN-
9781849513272
4. Michael Heydt (2015), Learning Pandas, Packt Publishing Ltd., ISBN- 9781783985135
5. Charles Dierbach (2012), Introduction to Computer Science Using Python: A Computational
Problem-Solving Focus, Wiley Global Education, ISBN- 9781118476604.
Modes of Evaluation: Quiz/Assignment/ Seminar/Written Examination
Examination Scheme:
Componen Seminar Assignment Term paper End Semester Exam
ts
Weightage 10 10 20 60
(%)
Mapping between COs and POs
Mapped
Relationship between the Course Outcomes (COs) and Program
Course Outcomes (COs) Outcomes (POs)
Programme
Outcomes
Program in python programming language
CO1 PO1, PO5
Design physical problems in terms of simulation models
CO2 PO3
Solve simulation models using python programming
CO3 PO4
Code
Course
CAP2009
g
1=weakly mapped
Python
Title
Course
3=strongly mapped
2= moderately mapped
programmin
2
Engineering Knowledge
PO1
Problem analysis
PO2
3
PO3 Design/development of solutions
Conduct investigations of complex problems
3
PO4
3
Modern tool usage
PO5
The engineer and society
PO6
Environment and sustainability
PO7
Ethics
PO8
Individual or team work
PO9
0
Communication
PO1
1
Project management and finance
PO1
2
Life-long Learning
PO1