Practical Guidelines & Questions For Grade X Term-1
Practical Guidelines & Questions For Grade X Term-1
Programs
Section A (Advanced Python)
1. Write a program to print largest number among the three inputs numbers using nested
if else.
2. Find the average height of the class with 10 students whose height are given in the
list.
height = [140, 154,181, 173, 176, 169, 153, 163, 140, 158]
3. Write a program to take a number from the user and check whether a number is prime
number or not.
4. Write a program to print the sum of n odd numbers.
5. Write a program to find the factorial of a given number using while loop.
6. Akash is an enthusiastic techie and is planning to build a new house and add smart
features to it. He wants to accomplish a certain set of tasks to achieve the same.
Task 1: He wants to create a password based smart system for the entry door of his
house for any person to enter his house.
Write a code which can take password as an input from the user and then check for
the correct password which is "SECRET". The user can enter the password only 3
times and the system should print "You cannot enter the house after that".
7. Manish wants to create a device which can display different set of information on the
screen as the person presses the dial pad. The screen should display the following
things when he presses the corresponding button:
Task 2 : Write a code which can help him keep the area in check by displaying it on
the screen as when required. the system should take an input from Mira and display
the area of that portion of that area accordingly.
9. Rohan went shopping for the various essential for his house. To help him maintain his
essential better and the cost he incurred at those items, create a numpy array with the
cost incurred on the items. The list with the incurred prices are as follows:
1) Convert the list into a numpy array and print the same
4) Create a new array where decrease the price of objects by 10% which are at odd
positions and display it
10. Import the library - Pandas and read citizen_data
11. Display the first 10 rows of citizen_data and its datatypes.
12. Drop “Phone2” column from citizen_data
13. Import the library – Matplotlib and plot a simple graph using [0,1,2,3] values.
14. Give label to x and y axis as “X_numbers” and “Y_numbers” to the values x= [1, 2, 3,
4] and y= [1, 4, 9, 16] and also change the size of the graph to (10,10).
15. Plot 4 different graphs in a single plot with the help of subplots. The values are as
follows.
y1 = [0,2,4,6]
y2 = [11,13,15,17]
y3 = [12,22,32,52]
y4 = [0,5,10,15]
x = [1,2,3,4]