Lab Manual Format
Lab Manual Format
LABORATORY MANUAL
Sub.Code : GE3171
Sub.Name : Problem Solving and Python Programming Laboratory
Regulation : R2021
INSTITUTE MISSION
2 Imparting state-of-the-art technology to fulfil the needs of the students and Industry
DEPARTMENT VISION
To become a centre of excellence in technical education and scientific research in the field of
Computer Science and Engineering for the wellbeing of the society.
DEPARTMENT MISSION
Producing graduates with a strong theoretical and practical in computer technology
1
to meet the Industry expectation.
Offering holistic learning ambience for faculty and students to investigate, apply and
2
transfer knowledge.
Inculcating interpersonal traits among the students leading to employability and
3
entrepreneurship.
4 Establishing effective linkage with the Industries for the mutual benefits
Strengthening Research activities to solve the problems related to industry and
5
society.
SYLLABUS
PROBLEM SOLVING AND PYTHON PROGRAMMING
GE3171 L T P C
LABORATORY
0 0 4 2
COURSE OBJECTIVES :
● To understand the problem-solving approaches.
● To learn the basic programming constructs in Python.
● To practice various computing strategies for Python-based solutions to real world problems.
● To use Python data structures - lists, tuples, dictionaries.
● To do input/output with files in Python.
EXPERIMENTS
1. Identification and solving of simple real life or scientific or technical problems, and developing flow charts for
the same. (Electricity Billing, Retail shop billing, Sin series, weight of a motorbike, Weight of a steel bar, compute
Electrical Current in Three Phase AC Circuit, etc.)
2. Python programming using simple statements and expressions (exchange the values of two variables, circulate
the values of n variables, distance between two points).
3. Scientific problems using Conditionals and Iterative loops. (Number series, Number Patterns, pyramid pattern)
4. Implementing real-time/technical applications using Lists, Tuples. (Items present in a library/Components of a
car/ Materials required for construction of a building –operations of list & tuples)
5. Implementing real-time/technical applications using Sets, Dictionaries. (Language, components of an automobile,
Elements of a civil structure, etc.- operations of Sets & Dictionaries)
6. Implementing programs using Functions. (Factorial, largest number in a list, area of shape)
7. Implementing programs using Strings. (reverse, palindrome, character count, replacing characters)
8. Implementing programs using written modules and Python Standard Libraries (pandas, numpy. Matplotlib, scipy)
9. Implementing real-time/technical applications using File handling. (copy from one file to another, word count,
longest word)
10. Implementing real-time/technical applications using Exception handling. (divide by zero error, voter’s age
validity, student mark range validation)
11. Exploring Pygame tool.
12. Developing a game activity using Pygame like bouncing ball, car race etc.
TOTAL: 60 Periods
CONTENT BEYOND SYLLABI: Data analytics using Python
COURSE OUTCOMES:
On completion of the course, students will be able to:
CO1: Develop algorithmic solutions to simple computational problems
CO2: Develop and execute simple Python programs.
CO3: Implement programs in Python using conditionals and loops for solving problems.
CO4: Deploy functions to decompose a Python program.
CO5: Process compound data using Python data structures.
CO6: Utilize Python packages in developing software applications.
LIST OF EXPERIMENTS
Sl.
List of Experiments Page No
No
b) Insertion sort
7. Merge sort. 19-20
11. Find the most frequent words in a text read from a 27-28
file
12. Simulate elliptical orbits in pygame 29-30