Experiment List 2025
Experiment List 2025
List of Experiments
Subject: Python
2. Program to show output formatting take two values and display them using single
print function using
• str.format()
• % operator
3. Write a Python program that takes two numbers as input and then allows the user to
choose an operation (addition, subtraction, multiplication, or division) to perform.
The program should then display the result of the operation.
6. Program on pattern
A ***** 1 *
BB **** 121 * *
CCC *** 12321 * * *
DDDD ** 1234321 * * * *
EEEEE * 123454321 * * * * *
Experiment No 2.
1. Python program to
● Read an array and display
● Append a new item to the end of the array.
● To reverse the order of the items in the array (slice operator)
● Get the length in bytes of one array item
● To append items from another array
● Remove a specified item using the index from an array
4. Python Program
● to sort group of strings into alphabetical order
● to check whether entered string is palindrome or not
● to count the number of vowels (a, e, i, o, u) in a given string.
Experiment - 3
2. Python menu driven program to develop simple calculator using variable length
argument
3. Python program to calculate square and cube of a number and use two decorators,
one to increase result by 4 and another to multiply result by 2.
4. Write menu driven python program that accept list of numbers and performs
following operation on list written in another module
3. Python program to overload greater than ( > ) operator to make it act on user defined
class objects
4. Python program to demonstrate concept of Interfaces.
Program contains Printer interface and its subclasses to send text to any printer.
Experiment 6
1. Python program
● To create class Student with rno, name, marks as instance variable and
constructor to initialize these instance variables.
● Instantiate n instances of classes and save details in list.
● Create an user defined exception class Fail to raise an exception if marks is
less than 40.
● Display details of students and also raise exceptions for marks less than 40.
2. Python program to
● create a file
● count no. of lines , words and characters in a file.
● write content of a file in a new file and read that new file.
3. Python program to
● create a class Customer with id, name, mobile number as instance variable and
constructor to initialize these instance variables.
● Instantiate n instances of classes
● Save details of all customer in a file and read back from that file.
Experiment 7
Create a file to import all the packages , calculate the salary and display all the details
of the Employee
Salary = Basic +H.R.A – P.F.
Experiment 8
Experiment 9
1. Python program to demonstrate use of Tkinter interface module.
Create a GUI based application using widgets Entry, Label, Text, Button, RadioButton,
CheckButton, ListBox, Menu, Spinbox (any five).
Save the details in a file and read back from file on python prompt.
Experiment 10
Save the details in a database and read back from file on python prompt.
Experiment 11
Experiment 12
1. Python program to create a 8x8 matrix and fill it with a checkerboard pattern (slice
operator)
4. Write a program, which can run two-thread simultaneously. One thread will print odd
numbers and another thread will print even number.
5. Write a Python program with multiple threads, where each thread prints a message
after a 3-second delay. Use the join() method to ensure the main program waits for all
threads to complete before printing "All threads finished."