List of experiments Section A Section B
Unit 1 Parts of Python Programming Language, 7/7/25 2/7/25
Control Flow Statements
Unit 1 list of experiments 14/7/25 9/7/25
1. Write a program to find the largest element
among three Numbers.
2. Write a Program to display all prime
numbers within an interval
3. Write a program to swap two numbers
without using a temporary variable.
4. Demonstrate the following Operators in
Python with suitable examples.
i) Arithmetic Operators ii) Relational
Operators
iii) Assignment Operators iv) Logical
Operators
v) Bit wise Operators vi) Ternary
Operator
vii) Membership Operators viii)
Identity Operators
Unit 1 extra experiments 21/7/25 16/7/25
5. Write a program to add and multiply
complex numbers
6. Write a program to print multiplication
table of a given number.
7. Write a python program to find whether a
person is eligible to vote or not using
exception handling.
8. Create a python program that asks the user
how far they want to travel. If they want to
travel less than three miles tell them to ride
Bicycle. If they want to travel more than
three miles, but less than three hundred
miles, tell them to ride Motor-Cycle. If they
want to travel three hundred miles or more
tell them to drive Super-Car.
Unit 2 theory concepts 28/7/25 23/7/25
Functions, strings, lists
Unit 2 list of experiments 4/8/25 30/7/25
1. Write a program to define a function with
multiple return values.
2. Write a program to define a function
using default arguments.
3. Write a program to find the
length of the string without using
any library functions.
4. Write a program to check if the substring
is present in a given string or not.
5. Write a program to perform the given
operations on a list:
i. Addition ii. Insertion iii. slicing
6. Write a program to perform any 5 built-in
functions by taking any list.
Unit 2 extra experiments 11/8/25 6/8/25
1. write a function to define the difference
between sum of even numbers and odd
numbers
2. Given a string, if the first or last character is
'x', return the string without those 'x'
character, else return the string unchanged.
If the input is "xHix", then output is "Hi".
3. Write a function to define the sum of prime
numbers using list
4. Write a function to define the sum of prime
numbers using list
Unit 3 Theory concepts 18/8/25 13/8/25
Dictionaries, tuples and sets
Unit 3 list of experiments 8/9/25 20/8/25
1. Write a program to create tuples
(name, age, address, college) for at
least two members and concatenate
the tuples and print the concatenated
tuples.
2. Write a program to count the
number of vowels in a string (No
control flow allowed).
3. Write a program to check if a given key
exists in a dictionary or not.
4. Write a program to add a new key-value
pair to an existing dictionary.
5. Write a program to sum all the items in a
given dictionary.
Unit 3 extra experiments 15/9/25 3/9/25
7. Write a program to replace last value of
tuples in a list to 100. Sample list: [(10, 20,
40), (40, 50, 60), (70, 80, 90)] Expected
Output: [(10, 20, 100), (40, 50, 100), (70, 80,
100)]
8. Write a program to print the fourth element
from first and fourth element from last in a
list
[Link] a program to check if the multiples of
given number exists or not?
write a program to find intersection and
union of sets
difference between "&" and "and" & is used for
bitwise operators and intersection whereas "and" is
used for logical operators
Unit 4 theory concepts 22/9/25 10/9/25
Files and object oriented programming
Unit 4 list of experiments 29/9/25 17/9/25
1. Write a program to sort words in a file
and put them in another file. The output
file should have only lower-case words,
so any upper-case words from source
must be lowered.
2. Python program to print each line of a file
in reverse order.
3. Python program to compute the number of
characters, words and lines in a file.
4. Write a program to create, display,
append, insert and reverse the order of
the items in the array.
5. Write a program to add, transpose and
multiply two matrices.
6. Write a Python program to create a
class that represents a shape. Include
methods to calculate its area and
perimeter. Implement subclasses for
different shapes like circle, triangle, and
square.
Unit 4 extra experiments 6/10/25 24/9/25
1. You have a text file called [Link] that
contains a list of student names, one per
line. Write a Python program that reads the
contents of this file and prints each student’s
name.
2. You need to create a text file named
[Link], where each line contains a
student's name followed by their grade (e.g.,
"John: A"). Write a Python program to write 5
student names and grades into this file
3. You have a file called [Link] that
contains student names and marks in CSV
format (e.g., "John,85"). Write a Python
program that reads the file and prints the
name of the student with the highest marks.
4. You need to create a program that reads the
contents of a file [Link] and appends a
new contact at the end of the file. The
contact contains a name, phone number,
and email.
Unit 5 list of experiments 13/10/25 8/10/25
1. Python program to check whether a JSON
string contains complex object or not.
2. Python Program to demonstrate NumPy
arrays creation using array () function.
3. Python program to demonstrate use of
ndim, shape, size, dtype.
4. Python program to demonstrate basic
slicing, integer and Boolean indexing.
5. Python program to find min, max, sum,
cumulative sum of array
6. Create a dictionary with at least five
keys and each key represent value as a
list where this list contains at least ten
values and convert this dictionary as a
pandas data frame and explore the data
through the data frame as follows:
a) Apply head () function to the
pandas data frame
b) Perform various data selection
operations on Data Frame
7. Select any two columns from the above
data frame, and observe the change in
one attribute with respect to other
attribute with scatter and plot
operations in matplotlib
practice 15/10/25