Artificial Intelligence [417] Class : IX
BAL BHARATI PUBLIC SCHOOL,
DWARKA
Central Board Of Secondary Education
A PRACTICAL RECORD FILE IS SUBMITTED FOR THE ARTIFICIAL
INTELLIENCE CLASS IX
SESSION 2024-25
SUBMITTED BY :
CLASS :
ROLL NO. :
Artificial Intelligence [417] Class : IX
CONTENTS
S.No Practical Date Signature
Input()
1. Write a Python program that prompts the user to
input two numbers and then calculates and displays
their sum.
2. Write a Python program that takes the length,
width, and height of a cuboid as input from the user,
and then calculates and displays the cuboid's
surface area and volume.
3. Write a python program to calculate Area of a
Triangle by taking input from user.
4. Write a program to calculate average marks of 3
subjects by taking input from user.
5. Write a program to calculate discounted amount
with discount %. by taking input from user.
List
6. 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-
a)Print the whole list
b)Delete the name “Vikram” from the list.
c)Add the name “Jaya” at the end.
d)Remove the item which is at the second position.
7. Create a list num=[23,12,5,9,65,44]
a)Print the length of the list
b)Print the elements from second to fourth position
using positive indexing.
c)Print the elements from position third to fifth
using negative indexing.
8. Create a list List_1=[10,20,30,40].Add the elements
[14,15,12] using the extend function.Now sort the
final list in ascending order and print it.
If statement()
9. Write a python program to input a number and
check whether it is Even or Odd.
10. Write a python program to input a number and
check whether it is Positive ,negative or zero and
display appropriate message.
11. Write a python program to check if a person can
vote or not.
12. Write a python program to Check the grade of a
student with the conditions you specified:
• Score 90 to 100: Grade A
• Score 75 to 89.9: Grade B
• Score 60 to 74.9: Grade C
• Score 50 to 59.9: Grade D
• Score 33 to 49.9 Grade E
• Score 0 to 32.9 Grade F
• Other than this Invalid Marks.
For,While loop
13. Write a python program to display numbers [Hint-
Use Loops]
i)1 to 10
ii)10 to 1
iii)Even numbers from 2 to 50.
iv)Odd numbers from 1 to 50.
14. Write a program to find numbers which are
divisible by 7 and multiple of 5 between 1200 and
2200.
15. Write a program to find whether a number is prime
or not using loop.
Practical 1
Write a Python program that prompts the user to input two numbers and then calculates and
displays their sum.
CODE
OUTPUT