Professional Documents
Culture Documents
SCIENCE
PRACTICAL FILE
(2021-2022)
INDEX
S NO. PROGRAM PAGE NO.
01 Write a function in python, which accept a list of marks of
students and return the minimum mark, maximum mark and
the average marks.
02 Write a function in python, which accept a number from user
to return True, if the number is a prime number else return
False.
03 Write a program to print the Fibonacci series using function.
1. Write a function in python, which accept a list of marks of students and return the
minimum mark, maximum mark and the average marks.
l= list()
n= int(input(" TOTAL NUMBER OF SUBJECTS: "))
for i in range (1, n + 1) :
i = int(input ("enter the marks: "))
x = l.append(i)
minimum=min(l)
maximum=max(l)
totalsum=sum(l)
length=len(l)
average=totalsum/length
print("minimum marks: ", minimum)
print("maximum marks: ", maximum)
print("average marks: ", average)
15.Read a CSV file from hard disc and print all the details on the screen.
16. Write a program to create a text file and print the lines starting with ‘T’ or
‘P’. (Both uppercase and lowercase).
17. Read a text file to print the frequency of the word ‘He’ and ‘She’ found in the file