0% found this document useful (0 votes)
7 views6 pages

G10 AI Practical File

The document is a practical file for Class X students at The HDFC School, Pune, focusing on Artificial Intelligence with code 417 for the session 2023-24. It includes a comprehensive index of programming tasks covering advanced Python programs, data science programs, data visualization, and computer vision. Each section contains specific programming exercises aimed at enhancing students' coding skills and understanding of various concepts in AI and data handling.

Uploaded by

Rushil Shah
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views6 pages

G10 AI Practical File

The document is a practical file for Class X students at The HDFC School, Pune, focusing on Artificial Intelligence with code 417 for the session 2023-24. It includes a comprehensive index of programming tasks covering advanced Python programs, data science programs, data visualization, and computer vision. Each section contains specific programming exercises aimed at enhancing students' coding skills and understanding of various concepts in AI and data handling.

Uploaded by

Rushil Shah
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

THE HDFC SCHOOL, PUNE

CLASS X
ARTIFICIAL INTELLIGENCE
(Code: 417)
PRACTICAL FILE
(Session: 2023-24)

1
INDEX
Page
[Link]. Topic Sign
no.
Advanced Python Programs
Write a program to compute the net run rate for a
1
tournament.
Write a program to check whether the given character is an
2 uppercase letter or lowercase letter or a digit or a special
character.
Write a program to find the maximum number out of the
3
given three numbers.
An electric power distribution company charges its domestic
consumers as given. 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 check whether the entered number is


5
Armstrong or not.
Write a program to generate the following pattern:
a)

1
2 3
4 5 6
7 8 9 10
6 11 12 13 14 15

b)

A
A B
A B C

2
A B C D
A B C D E

c)
*
* *
* * *
* * * *
* * * * *
Write a program to print sum of natural numbers between 1
7
to 7.
Write a program to calculate and print the sum if even and
8
odd integers of the first n natural numbers.
Write a program to input a number and print how many digits
9
are there in the given number.
Write a program to input a number and print the sum of digits
10
in a given number.
11 Write a program to add the elements of the two lists.
Write a program to create a list of students' marks with user
12
defined values and find the maximum.
Write a program to create a list of numbers and swap the
content with the next value divisible by 5.
13
For example: list = [4,25,31,7,35,44,55]
Output: [25,4,31,35,7,55,44]
Write a program to count the frequency of every element in a
14
given list.
Write a program to find the largest & smallest number in a list
15
using max() & min() methods.
Write a program to print squares of all numbers present in a
16
list.
Write a program to count the number of odd values in a given
17
list of numbers.
Write a python program to add a number entered by user, in
18
an already existing list using append () function.
Write a program by taking a string from the user and check if
19 the string is in lower case. If it is in lowercase, convert it to
uppercase.

3
Write a program by taking a string from the user and
replace some of the strings with another string.
For example,
20 Input: Hello world, I am Python. I am a programming
language.
Output: Hello world, I am Java. I am a programming
language.
Write a program to accept a charater from the user and
21
display whether it is a vowel or consonant.
Write a prgram to enter a number and check if it is a prime or
22
not.

Data Science Programs


23 Write a program to create a 2D array using NumPy.
24 Write a program to convert a python list to a NumPy array.
25 Write a program to create matrix of 3x3 from 11 to 30.
Write a program to create a data frame to store data of
candidates who appeared in interviews. The dataframe
26
columns are name, score, attempts, and qualify (Yes/No).
Assign row index as C001, C002, and so on.
Write a program to create a dataframe named player and
store their data in the columns like team, no. of matches runs,
27
and average. Assign player name as row index and Display
only those player details whose score is more than 1000.
Write a program to calculate variance and standard deviation
28 for the given data.
[33,44,55,67,54,22,33,44,56,78,21,31,43,90,21,33,44,55,87]
Write a menu-driven program to calculate the mean, mode
29 and median for the given data.
[5,6,1,3,4,5,6,2,7,8,6,5,4,6,5,1,2,3,4]
Data Visualization
30 Write a program to display line chart from (2,5) to (9,10).
Write a program to display a scatter chart for the following
31
points (2,5), (9,10),(8,3),(5,7),(6,18).
Write a program to represent the data on the ratings of
mobile games on bar chart. The sample data is given.
32
Games: Pubg, FreeFire, MineCraft, GTA-V, Callofduty, FIFA 22.
Rating: 4.5, 4.8, 4.7, 4.6 ,4.1 ,4.3.
Consider the given data of a clothes store and plot the data
33
on the line chart and customize the chart.

4
Observe the given data for monthly sales of one of the
salesmen for 6 months. Plot them on the line chart.

34
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.
Write a python program to visualize plots line, bar,
35 scatter, Boxplot, Histogram and pie chart using
matplotlib library.
Computer Vision
Write a program in python to read and display an image.
36 Adjust the size of the image and display the height and width
of the image.
Perform the operations on the given dataset using Jupyter
notebook.
a) Import required libraries (Pandas, Matplotlib)
b) Get the data (read_csv)[3 ways: From the system, From
37 Drive, From website]
c) Explore the Data (head, tail, shape, describe, info, dtypes,
isnull, drop)
d) Visualize the dataset using Pie, Line, Scatter and Bar charts
(Matplotlib).
Write a program in python to read display and rotate an
38
image to a certain angle.

5
On the basis of the online tool,
Visit [Link]
try and write answers of all the questions given.
 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?
39
• 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?
40 Create your own pixels on piskelapp and make a gif image.
Do the tasks given in OpenCV.
• Load an image & Give the title of the image
• Change the image to grayscale
41 • Print the shape of image
• Display the maximum and minimum pixels of image
• Crop the image.
• Save the Image

You might also like