0% found this document useful (0 votes)
4 views2 pages

ProgramsAI Compiled

The document outlines a series of programming tasks for Grade IX students, focusing on Python list manipulations, basic arithmetic operations, and control structures. It includes exercises such as creating and modifying lists, calculating areas and volumes, and implementing loops for various outputs. The tasks aim to enhance students' understanding of programming concepts and their practical applications.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

ProgramsAI Compiled

The document outlines a series of programming tasks for Grade IX students, focusing on Python list manipulations, basic arithmetic operations, and control structures. It includes exercises such as creating and modifying lists, calculating areas and volumes, and implementing loops for various outputs. The tasks aim to enhance students' understanding of programming concepts and their practical applications.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

AI programs for practical exam – Grade IX

1. Create a list in Python of children selected for science quiz with


following names- Arjun, Sonakshi, Vikram, Sandhya, Sonal, Isha, Kartik
Perform the following tasks on the list in sequence-
 Print the whole list
 Delete the name “Vikram” from the list
 Add the name “Jay” at the end
 Remove the item which is at the second position.
2. 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

3. 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.

4. Write a program to print personal information like Name,


Father’s Name, Class, School Name.
5. Write a program to print the following patterns using
multiple print commands-

6. Write a program to find square of number 7


7. Write a program to find the sum of two numbers 15 and 20.
8. Write a program to convert length given in kilometers into
meters.
9. Write a program to print the table of 5 up to five terms.
10. Write a program to calculate Simple Interest if the
principle_amount = 2000 rate_of_interest = 4.5 time = 10
11. Write a program to calculate Area and Perimeter of a
rectangle
12. Write a program to calculate Area of a triangle with
Base and Height
13. Write a program to calculating average marks of 3
subjects
14. Write a program to calculate discounted amount with
discount %
15. Write a program to calculate Surface Area and Volume
of a Cuboid
16. Write a program to check if a person can vote
17. Write a program to check the grade of a student
18. Write a program to Input a number and check if the
number is positive, negative or zero and display an
appropriate message
19. Write a program to print first 10 natural numbers
20. To print first 10 even numbers
21. To print odd numbers from 1 to n
22. To print sum of first 10 natural numbers
23. Program to find the sum of all numbers stored in a list.

IF, FOR, WHILE programs

a) Program to check if a person can vote


b) To check the grade of a student
c) Input a number and check if the number is positive, negative or zero
and display an appropriate message
d) To print first 10 natural numbers
e) To print first 10 even numbers
f) To print odd numbers from 1 to n
g) To print sum of first 10 natural numbers
h) Program to find the sum of all numbers stored in a list

You might also like