Ai Practical File Class X 2024-25
Ai Practical File Class X 2024-25
HYDERABAD
SUBMITTED BY:
Date:
Signature of Principal
TABLE OF CONTENTS
NO PRACTICAL DATE SIGNATURE
Unit 3 Advanced Python Programs
1 Write a python script to calculate area and perimeter of
rectangle and square
2 Write a python program to accept 5 subjects marks from
student and calculate percentage of the student
3 Write a python program to check whether a given
number is even or odd
4 Write a python program to check whether the given
character is an uppercase letter or lowercase letter or a
digit or a special character
5 Write a python program to find the maximum number out
of the given three numbers.
6 Write a python program to find factorial of a number
7 Write a python program to print Fibonacci series up to 20
numbers
8 Write a python program to print multiplication table of a
number
9 Write a program to create a list of integers and find the
sum of the numbers in the list.
10 Write a python program to find the frequency of given
element in the list.
Unit 4 Data Science Programs
11 Write a program to create a 2D array using NumPy.
12 Write a program to convert a python list to a NumPy
array.
13 Write a program to create matrix of 3x3 from 11 to 30.
14 Write a program to represent the data on the ratings of
mobile games on bar chart. The sample data is given as:
Pubg, FreeFire, MineCraft, GTA-V, Call of duty, FIFA
22. The rating for each game is as: 4.5,4.8,4.7,4.6,4.1,4.3.
15 Observe the given data for monthly sales of one of the
salesmen for 6 months. Plot them on the line chart.
Month January February March April May June
Sales 2500 2100 1700 3500 3000 3800
Apply the following customizations to the chart:
•Give the title for the chart - "Sales Stats"
•Use the "Month" label for X-Axis and "Sales" for Y-
Axis.
•Display legends.
•Use dashed lines with the width 5 point.
•Use red color for the line.
•Use dot marker with blue edge color and black fill color.
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 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?
17 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 colour code for Dark Green ?
•What is the colour code for Dark purple?
•What is the colour code for grey ?
•What is the colour code for Red?
• What is the colour code for bright Yellow
18 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
Unit 3 Advanced Python Programs
1 Write a python script to calculate area and perimeter of rectangle and square
Solution:
Output:
Output:
5 Write a python program to find the maximum number out of the given three
numbers.
Solution:
Output:
6 Write a python program to find factorial of a number
Solution:
Output:
Output:
8 Write a python program to print multiplication table of a number up to 20
terms
Solution:
Output:
9 Write a program to create a list of integers and find the sum of the numbers
in the list.
Solution:
Output:
10 Write a python program to find the frequency of given element in the list.
Solution:
Output:
Output:
12 Write a program to convert a python list to a NumPy array.
Solution:
Output:
Output:
14 Write a program to represent the data on the ratings of mobile games on bar
chart. The sample data is given as: Pubg, FreeFire, MineCraft, GTA-V, Call
of duty, FIFA 22. The rating for each game is as: 4.5,4.8,4.7,4.6,4.1,4.3.
Solution
Output:
15 Observe the given data for monthly sales of one of the salesmen for 6
months. Plot them on the line chart.
Output:
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 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 putR=255,G=0,B=255?
•What is the output colour when you putR=0,G=255,B=255?
•What is the output colour when you put R=G=B=0?
Solution:
1. White
2. Yellow
3. Pink
4.Cyan
5. Black
17 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 colour code for Green ?
•What is the colour code for purple?
•What is the colour code for grey ?
•What is the colour code for Red?
• What is the colour code for lemon Yellow
Solution:
Green:
Purple
Grey:
Red:
Lemon yellow:
Output:
Output:
(1920, 1357)
Output:
0
255
5. Crop the image and extract the part of an image