CE0525 - PSC (Programming For Scientific Computing)
CE0525 - PSC (Programming For Scientific Computing)
Course Objectives:
1. Importance of Python as scientific computing tool which directly leads to employability.
2. To learn how to design and develop Python applications.
3. Skill development to apply mutable and immutable types.
4. To learn how to design object‐oriented concepts in python.
5. Development of GUI based applications for entrepreneurship.
6. To learn how to build and package Python modules for reusability.
CONTENTS
UNIT-I
[12 hours]
Basic elements of Python, Branching, looping, Strings and Input, Iteration, Functions, Recursion,
Global variables, Modules, Files, Structured Objects, Mutability: Strings, Tuples, Lists, Sets,
Dictionaries, Functions as Objects, Mutability and Higher-Order Functions.
UNIT-II
[12 hours]
Object-Oriented Programming, Abstract Data Types and Classes, Encapsulation and Information
Hiding, Simple Algorithms and Data structures, Regular Expressions – REs, Networking,
Multithreading in Python.
UNIT-III
[12 hours]
Array computing and curve plotting, vectors and higher-dimensional arrays, matrices, numPy,
sciPy and Matplotlib, Plotting using PyLab, Chat Application, Graphics and GUI Programming –
Drawing using Turtle, Tkinter.
UNIT-IV
[12 hours]
Python Pandas - Data alignment, aggregation, summarization, computation and analysis with
Pandas. Scientific computation using Python - Statistical data analysis, image processing, Basics
of web development (Introduction to frameworks flask, Tensorflow).
Course Outcomes:
Text Books:
1. John V Guttag. “Introduction to Computation and Programming Using Python”, Prentice Hall
of India
2. Hans Petter Langtangen, A Primer on Scientific Programming with Python
Reference Books:
1. Claus Fuhrer, Jan Erik Solem, Olivier Verdier, Scientific Computing with Python 3,Packt
Publishing Limited
2. Martin C. Brown, Python: The Complete Reference, McGraw Hill Education R. Nageswara
Rao, “Core Python Programming”, dreamtech
3. Wesley J. Chun. “Core Python Programming - Second Edition”, Prentice Hall
4. Michael T. Goodrich, Roberto Tamassia, Michael H. Goldwasser, “Data Structures and
Algorithms in Python”, Wiley
5. Kenneth A. Lambert, “Fundamentals of Python – First Programs”, CENGAGE Publication
Web Resources:
1) http:// https://www.edx.org/course/introduction-to-computer-science-and-programming-using-
python-2
2) http://www.openculture.com/2017/05/learn-python-with-a-free-online-course-from-mit.html
3) https://www.edx.org/course/introduction-to-python-absolute-beginner-3
LIST OF EXPERIMENTS
1.1 Write a Python program to print the calendar of a given month and CO1
year.
1.2 Write a Python program to calculate number of days between two CO1
dates.
Test Data :
3 -> [1, 5, 8, 3] : True
-1 -> [1, 5, 8, 3] : False
1.4 Write a Python program to get OS name, platform and release CO1
information.
2. Mutable and Immutable types
2.2 Write a Python program to display the first and last colors from the CO2
following list.[orange, purple, red,yellow,blue]
2.3. Write a Python program to concatenate all elements in a list into a
string and return it.
2.4 Write a Python program to print out a set containing all the colors CO2
from color_list_1 which are not present in color_list_2.
Test Data :
color_list_1 = set(["White", "Black", "Red"])
color_list_2 = set(["Red", "Green"])
Expected Output :
{'Black', 'White'}
2.5 Write a Python script to print a dictionary where the keys are CO2
numbers between 1 and 15 (both included) and the values are square
of keys. Sample Dictionary
{1: 1, 2: 4, 3: 9, 4: 16, 5: 25, 6: 36, 7: 49, 8: 64, 9: 81, 10: 100, 11:
121, 12: 144, 13: 169, 14: 196, 15: 225}
2.6 Write a Python program to print all unique values in a dictionary. CO2
Sample Data : [{"V":"S001"}, {"V": "S002"}, {"VI": "S001"},
{"VI": "S005"}, {"VII":"S005"}, {"V":"S009"},{"VIII":"S007"}]
Expected Output : Unique Values: {'S005', 'S002', 'S007', 'S001',
'S009'}
3.1 Develop programs for data structure algorithms using python – CO6
searching, sorting and hash tables.
3.2 Write a Python Program that searches a string to see if it starts with CO1
"The" and ends with "Indus".
3.3 Write a Python Program that returns a match where the string CO1
contains a white space character.
3.4 Write a Python program that matches a string that has an a followed CO1
by three 'b'.
3.6 Perform basic plotting using the randomly generated data to plot CO1
graph using series and matplotlib.
3.7 Generate different types of bar plot and Pie plot to understand CO1
behavior of given data.
4 Tkinter, turtle, flask
4.1 Create (1) Registration form (2) Quiz form using tkinter. CO3
4.2 Draw (1) Square (2) Rectangle (3) Star patterns using Turtle. CO3
5. Numpy
6. Pandas