Class IX_ PYTHON practical list
Class IX_ PYTHON practical list
Xavier’s High
School
Sector -49, Gurugram-122002
CLASS IX
SESSION 2024-25
IX Practical File|Session2024-25
Page 1 | 5
CLASS : IX [B]
ROLL NO: 16
ACKNOWLEDGEMENT
IX Practical File|Session2024-25
Page 2 | 5
[Rishi Papneja]
CERTIFICATE
IX Practical File|Session2024-25
Page 3 | 5
Date: School Seal Teacher Signature
PRINT/ Accept the values from user and print the out as per the
INPUT program
1. To calculate Area and Perimeter of a rectangle
2. To calculate Area of a triangle with Base and Height
3. To calculating average marks of 3 subjects
4. To calculate discounted amount with discount %
5. To calculate Surface Area and Volume of a Cuboid
IF, FOR, 6. Program to check if a person can vote
WHILE 7. To check the grade of a student
8. Input a number and check if the number is positive,
negative or zero and display an appropriate message
9. To print first 10 natural numbers
10. To print first 10 even numbers
11. To print odd numbers from 1 to n
12. To print sum of first 10 natural numbers
13. Program to find the sum of all numbers stored
in a list
List 14. Create a list in Python to perform the following
tasks on the list in sequence-
Accept name and class children selected for
science quiz
Insert the details accepted in list
The user should be asked every time to continues
adding names
IX Practical File|Session2024-25
Page 4 | 5
Print the whole list
15. Create a list num=[23,12,5,9,65,44]
print the length of the list
print the elements from second to fourth position
using positive indexing
print the elements from position third to fifth using
negative indexing
16. Create a list of first 10 even numbers, add 1 to
each list item and print the final list.
17. Create a list List_1=[10,20,30,40]. Add the
elements [14,15,12] using extend function. Now sort
the final list in ascending order and print it.
PASTE THE
PROGRAM CODE
AND OUTPUT
SCREENSHOT
HERE
IX Practical File|Session2024-25
Page 5 | 5