MDH INTERNATIONAL SCHOOL
SECTOR-6, DWARKA
PRACTICAL FILE
OF
ARTIFICIAL INTELLIGENCE (417)
CLASS : IX
(SESSION : 2025-26)
SUBMITTED TO : SUBMITTED BY :
MS. SONAL MITTAL NAME :
CLASS :
ROLL NO. :
INDEX
[Link] PYTHON PRACTICAL COMPLETION
DATE
1. Write a Python program to print personal information like
Name, Father's Name, Class, and School Name.
2. Write a Python program to print the triangular patterns
using multiple print statements.
3. Write a Python program to find the square of the number 7.
4. To find the sum of two numbers 15 and 20.
5. To convert length given in kilometers into meters.
6. To print the table of 5 up to five terms.
7. To calculate Simple Interest if the principle_amount = 2000,
rate_of_interest = 4.5, time = 10.
8. To calculate Area and Perimeter of a Rectangle.
9. To calculate Area of a triangle with Base and Height.
10. To calculate average marks of 3 subjects.
11. To calculate discounted amount with discount %.
12. To calculate Surface Area and Volume of a Cuboid.
13. Create a list in Python of children selected for science quiz
with the following names: Arjun, Sonakshi, Vikram,
Sandhya, Sohan, Isha, Kartik. Perform the following tasks
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
14. 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
15. Create a list of first 10 even numbers, add 1 to each list item
and print the final list.
16. 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.
17. Program to check if a person can vote or not.
18. To check the grade of a student
19. Input a number and check if the number is positive,
negative or zero and display an appropriate message
20. To print first 10 natural numbers
21. To print first 10 even numbers
22. To print N odd numbers
23. To print sum of first 10 natural numbers
24. Program to find the sum of all numbers stored in a list
25. Write a Python program to perform the following operations
on a list of numbers:
(i) Add a new number to the list.
(ii) Remove a number from the list.
(iii) Sort the list in ascending order.
(iv) Reverse the order of the list.
(v) Find the index of a specific number in the list.
PROGRAM 1 :
To print personal information like Name, Father's Name, Class, School
Name.
CODE :
Name = "Angelina"
FatherName = "Robert"
Class = 9
SchoolName = "St. Joseph"
print("***PERSONAL INFORMATION***")
print("Student Name : ", Name)
print("Father's Name : ", FName)
print("Class : ", Sclass)
print("School Name : ", Sch_Name)
OUTPUT :