INDIAN SCHOOL AL WADI AL KABIR
PRACTICAL RECORD FILE
ARTIFICIAL INTELLIGENCE
CLASS 10 SESSION 2024-25
CON TENTS
No Practical Date Signature
1 Advanced Python Programs
1 Write a program to read todays date (only date Part) from user.
Then display how many days are left in the current month.
2 Write a program to check the given year is leap year or not.
3 An electric power distribution company charges its domestic
consumers as follows:
Units Rate of Charge
0-100 Rs. 1 per unit
101-300 Rs. 100 plus Rs. 1.25 per unit in excess of 100
301-500 Rs. 350 plus Rs. 1.50 per unit in excess of 300
500 and above Rs. 650 plus Rs. 1.75 per unit in excess of 500
Write a program that read the customer number & power
consumed and prints the amount to be paid by the customer. Note
that output should be well formatted.
4 Write a program to calculate compound & simple interest after
taking the principle, rate and time.
5 Write a program to add the elements of two list.
6 Write a program to create a list1= [10,20,30,40]. add the elements
[14,15,12] using extend function. Now sort the final list in
ascending order and print it.
7 Write a program to create a list of students' marks with user-
defined values and find the maximum.
2 Data Science Programs
8 Write a program to create a 2D array using NumPy.
9 Write a program to convert a python list to a NumPy array.
10 Write a program to create matrix of 3x3 from 11 to 28.
11 Write a program to calculate Mean, Median and Mode using
NumPy.
12 Write a program to calculate variance and standard deviation for
the given data:
[33,44,55,67,54,22,33,44,56,78,21,31,43,90,21,33,44,55,87]
13 Write a program to display a scatter chart for the following
points and customize the chart as you wish:
(2,5),(9,10),(8,3),(5,7),(6,18)
No Practical Date Signature
14 Consider the following data of a clothes store and plot the data on
the line chart and customize the chart as you wish:
Month Jeans T-Shirts Shirts
March 1500 4400 6500
April 3500 4500 5000
May 6500 5500 5800
June 6700 6000 6300
July 6000 5600 6200
August 6800 6300 4500
15 a. Read csv file saved in your system and display 10 rows.
b. Read csv file of students marks and plot a bar graph with the
given data and customize the chart as you wish.
3 Unit 5 Computer Vision
16 Visit https://www.w3schools.com/colors/colors_rgb.asp.
On the basis of this online tool, try and write answers of all the
below-mentioned questions.
• What is the output color when you put R=G=B=255?
• What is the output color when you put R=G=255, B=0?
• What is the output color when you put R=255, G=0, B=255?
• What is the output color when you put R=0, G=255, B=255?
• What is the output color when you put R=G=B=0?
• What is the output color when you Put R=0, G=0, B=255?
• What is the output color when you Put R=255, G=0, B=0?
• What is the output color when you put R=0, G=255, B=0?
• What is the value of your color?
17 Do the following tasks in OpenCV.
• Load an image & Give the title of the image
• Change the image to grayscale
• Print the shape of image
• Display the maximum and minimum pixels of image
• Crop the image.
• Save the Image
Advanced Python
1. Write a program to read todays date (only date Part) from user. Then display how may
days are left in the current month.
2. Write a program to check the given year is leap year or not.
3. An electric power distribution company charges its domestic consumers as follows:
Consumption Units Rate of Charge
0-100 Rs. 1 per unit
101-300 Rs. 100 plus Rs. 1.25 per unit in excess of 100
301-500 Rs. 350 plus Rs. 1.50 per unit in excess of 300
500 and above Rs. 650 plus Rs. 1.75 per unit in excess of 500
Write a program that read the customer number & power consumed and prints the
amount to be paid by the customer. Note that output should be well formatted.
4. Write a program to calculate compound & simple interest after taking the principle, rate
and time.
5. Write a program to add the elements of two list.
6. Write a program to create a list1= [10,20,30,40]. add the elements [14,15,12] using extend
function. Now sort the final list in ascending order and print it.
7. Write a program to create a list of students' marks with user-defined values and find the
maximum.
Data Science Programs
8. Write a program to create a 2D array using NumPy.
9. Write a program to convert a python list to a NumPy array.
10. Write a program to develop a matrix of 3x3 with values from 11 to 28.
11.Write a program to calculate Mean, Median and Mode using NumPy.
12.Write a program to calculate variance and standard deviation for the given data:
[33,44,55,67,54,22,33,44,56,78,21,31,43,90,21,33,44,55,87]
13.Write a program to display a scatter chart for the following points and customize the chart
as you wish:
(2,5),(9,10),(8,3),(5,7),(6,18)
14.Consider the following data of a clothes store and plot the data on Jeans T-Shirts Shirts
1500 4400 6500
the line chart and customize the chart as you wish: 3500 4500 5000
6500 5500 5800
6700 6000 6300
6000 5600 6200
6800 6300 4500
15.
a. Read csv file saved in your system and display 10 rows.
b. Read csv file of students marks and plot a bar graph with the given data and
customize the chart as you wish
Unit 5 Computer Vision
16.Visit this link (https://www.w3schools.com/colors/colors_rgb.asp). On the basis of
this online tool, try and write answers of all the below-mentioned questions.
• What is the output colour when you put R=G=B=255?
• What is the output colour when you put R=G=255,B=0?
• What is the output colour when you put R=255,G=0,B=255?
• What is the output colour when you put R=0,G=255,B=255?
• What is the output colour when you put R=G=B=0?
• What is the output colour when you Put R=0,G=0,B=255?
• What is the output colour when you Put R=255,G=0,B=0?
• What is the output colour when you put R=0,G=255,B=0?
• What is the value of your colour?
Solution:1.
1. White
2. Yellow
3. Pink
4. Cyan
5. Black
6. Blue
7. Red
8. Green
9. R=0, G=0, B=255
17.Do the following tasks in OpenCV.
• Load an image and Give the title of the image
• Change the colour of image and Change the image to grayscale
• Print the shape of image
• Display the maximum and minimum pixels of image
• Crop the image and extract the part of an image
• Save the Image
a. Load Image and Give the title of image:
b. Change the color of image and Change the image to grayscale
c. Print the shape of image
d. Display the maximum and minimum pixels of image
e. Crop the image and extract the part of an image
f. Save the Image