KK Practical File X
KK Practical File X
S Program Name
no Signatu
. re
1 Write a program to create simple calculator in Python
2 Write a program in python to display the factorial of a
given number.
3 Write a program to check the number entered by user
is Armstrong or not
4 Write a programs to display the area of triangle using
Herons Formula
5 Write a program to calculate the sum of even and odd
number from 1 to 200
6 Write a program to compute the sum of n given prime
numbers enter the value of n with proper input
7 Write a program to calculate third side of right angle
triangle from the two sides entered by user.
8 Write a program to calculate the sum of marks of 5
subjects and calculate its grade
9 Write a program to print the sum of first 20 natural
numbers
10 Write a menu driven program to perform various
mathematical operations on
array.(Add,Sub,multiply,Divide,FloorDivision and
Modulas)
11 Write a menu driven program to perform various
numpy,function(array,arrange,random,randint,ones,ze
ros,full)
12 Write a program to develop a matrix of 3x3 with
values from 9to 26.
13 Write a menu driven program to display various
numpy functions of array
.(type,ndim,shape,size,dtype,max,sum)
14 Write a program to create a CSV file to store data of
Employees. The data frame columns are Emp Name,
Gender,
Salary, and Department.
List the detail of all employs
Display top 4 rows
Display bottom 4 rows
Display the detail of column Department and
Salary
15 Write a program to represent the data on the ratings of
mobile games on bar chart,Line chart and pie chart.
The sample data is given as: Pubg, FreeFire,
MineCraft, GTA-V, Call of duty, FIFA 22. The rating
for each game is as: 4.5,4.8,4.7,4.6,4.1,4.3
16 Consider the following data of a Library and plot the
data on the line chart and bar chart:
Month Data
March 100,120,142,154,136,152
Apr 112,141,156,135,140,156
May 132,143,156,158,134,147
17 Write the menu driven program and calculate mean,
mode and median for the given data
[3,4,6,8,12,7,8,13,15]
18 Write a program to calculate variance and standard
deviationfor the given data.[ 3,4,6,8,12,7,8,13,15,45]
19 Write a program to load image and Give the title of
image
20 Write a program to load image and Crop the image
and
extract the part of an image.
Program NO.2
Program Name: Write a program in python to display the factorial of a
given number.
Source Code:
Output:
Program NO.3
Program Code: Write a program to check the number entered by user
is Armstrong or not
Source Code:
Output:
Program NO. 4
Program Name: Write a programs to display the area of triangle using
Herons Formula
Source Code:
Output:
Program NO5
Program Name: Write a program to calculate the sum of even and odd
number from 1 to 200
Source Code:
Output:
Program No. 6
Program Name: Write a program to compute the sum of n given prime
numbers enter the value of n with proper input
Source Code:
Output:
Program No. 7
Source Code:
Output:
Program No. 8
Source Code:
Output:
Program No. 9
Source Code:
Output:
Program No. 10
Source Code:
Output:
Program No. 11
Source Code:
Output:
Program No.12
Source Code:
Output:
Program No. 13
Source code:
Output:
Program NO. 14
Source Code:
Output:
Program No. 15
Source Code:
Output:
Program No. 16
Program Name: Consider the following data of a Library and plot the
data on the line chart and bar chart:
Month Data
March 100,120,142,154,136,152
Apr 112,141,156,135,140,156
May 132,143,156,158,134,147
Source Code:
Output:
Program No. 17
Program Name: Write the menu driven program and calculate mean,
mode and median for the given data [3,4,6,8,12,7,8,13,15]
Source Code:
Output:
Program NO. 18
Program Name: Write a program to calculate variance and standard
deviation for the given data.[ 3,4,6,8,12,7,8,13,15,45]
Source Code:
Output:
Program No. 19
Program Name: Write a program to load image and Give the title of
image
Source Code:
Output:
Program No. 20
Program Name: Write a program to load image and Crop the image
and extract the part of an image.
Source Code:
Output: