MC4112 PYTHON PROGRAMMING LABORATORY LTPC
0042
OBJECTIVES:
Develop Python programs with conditionals, loops and functions
Represent compound data using Python lists, tuples, and dictionaries
Read and write data from/to files in Python
Implement NumPy, Pandas, Matplotlib libraries
Implement object oriented concepts
LIST OF EXPERIMENTS:
Note: The examples suggested in each experiment are only indicative. The lab instructor is expected
to design other problems on similar lines.
1. Python programming using simple statements and expressions (exchange the values of two
Variables, circulate the values of n variables, distance between two points).
2. Scientific problems using Conditionals and Iterative loops.
3. Linear search and Binary search
4. Selection sort, Insertion sort
5. Merge sort, Quick Sort
6. Implementing applications using Lists, Tuples.
7. Implementing applications using Sets, Dictionaries.
8. Implementing programs using Functions.
9. Implementing programs using Strings.
10. Implementing programs using written modules and Python Standard Libraries (pandas, numpy,
Matplotlib, scipy)
11. Implementing real-time/technical applications using File handling.
12. Implementing real-time/technical applications using Exception handling.
13. Creating and Instantiating classes
HARDWARE/SOFTWARE REQUIREMENTS
1: Processors: Intel Atom® processor Intel®Core™i3 processor
2: Disk space: 1GB.
3: Operating systems: Windows 7,macOS and Linux
4: Python versions:2.7, 3.6, 3.8
TOTAL: 60 PERIODS
COURSE OUTCOMES:
On completion of the laboratory course, the student should be able to
CO1: Apply the Python language syntax including control statements, loops and functions to solve a wide
variety of problems in mathematics and science.
CO2: Use the core data structures like lists, dictionaries, tuples and sets in Python to store, process and
sort the data
CO3: Create files and perform read and write operations
CO4: Illustrate the application of python libraries.
CO5: Handle exceptions and create classes and objects for any real time applications
REFERENCES:
1. Allen B. Downey, “Think Python: How to Think Like a Computer Scientist”, Second Edition, Updated
for Python 3, Shroff/O’Reilly Publishers, 2016.
2. Shroff “Learning Python: Powerful Object-Oriented Programming; Fifth edition, 2013.
3. David [Link] “Python Essential Reference”. Addison-Wesley Professional; Fourth edition, 2009.
Tentative
4. David M. Baezly “Python Cookbook” O’Reilly Media; Third edition (June 1, 2013).
5. [Link]