You are on page 1of 6

HARVEST INTERNATIONAL SCHOOL

BENGALURU
2021-2022

COMPUTER SCIENCE – PRACTICAL RECORD

DONE BY: Sanjeev Krishnaa

GRADE: 11

                                                      
Teacher InCharge Principal
Sl.No Program Teacher’s Date
Signature

1 Write a program to search for an element in a


given list of numbers

2 Write a program to find minimum element from a


list of elements along with its index in the list

3 Write a program that takes a list from the user.


Adds 5 in all the odd values and 10 in all even
values of the list.

4 Write a program to find and display the sum of


all the values which are ending with 3 from a list.

5 Input a list of ‘L’ element from the user. Multiply


an element by 2if its odd index. Display the final
list.

6 Write a program that takes the height of


different users and save them in a list. Write a
menu driven program to sort the contents of the
list using bubble sort and insertion sort.

7 WAP to display those strings which are starting


with character ’A’ or ‘a’ from a list L consisting of
names of 10 people.

8 Write a program that creates a tuple storing first


"n" terms of a Fibonacci series. Value of "n" is
inputted by user.

9 Write a program that contains a tuple T and


displays the second largest element in the tuple

11 WAP that repeatedly asks the user to enter the


product names and prices.
Store all of these in a dictionary whose keys are
the product names and whose values are the
prices.

12 WAP to create a dictionary whose keys are


month names and whose values are the
number of days in the corresponding month
i) Ask the user to enter a month name and use
the dictionary to tell how many days are in the
month
ii) Print out all of the keys in alphabetical order
iii) Print out all the of the months with 31 days
iv) Print out the (key-value) pairs sorted by the
number of days in each month.

13 WAP to read a list containing 3-digit integers


only. Write a menu driven program to sort the
list using insertion sort or bubble sort on the
basis of one’s digits of all the elements.
CERTIFICATE
 This is to certify that Sanjeev Krishnaa student of class

XI has successfully completed the laboratory report

under the Guidance of Mrs.Pravitha Nambiar during

the year 2021-22.


Question 1: Write a program to calculate the SA and the volume of a cube input
from the user. 

Source Code:

a= float(input("enter side of the cube "))


surface_area = 6*a**2
print("the surface area is ", surface_area)
volume = a**3
print("the  volume of the cube is ", volume)

Output:

You might also like