0% found this document useful (0 votes)
17 views

python Programs for class IX

Uploaded by

jnprasad95
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

python Programs for class IX

Uploaded by

jnprasad95
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Artificial Intelligence [417 ] Class : X

The Aditya Birla Public School,


Renukoot

Central Board Of Secondary Education

A PRACTICAL RECORD FILE IS SUBMITTED FOR


THE ARTIFICIAL INTELLIGENCE CLASS 10
SESSION 2023-24

SUBMITTED BY : NAME OF STUDENT


CLASS : X
CBSE ROLL :
NO.

SUBMITTED TO : NAME OF THE TEACHER

Practical Record Book – 2023 - 2024 Page 1 of 7


Artificial Intelligence [417 ] Class : X

ACKNOWLEDGEMENT

I wish to express my deep sense of gratitude and


indebtedness to our learned teacher [TEACHER’S
NAME] , DESIGNATION, [SCHOOL NAME] for his
invaluable help, advice and guidance in the
preparation of this project.

I am also greatly indebted to our principal [Name of


principal] and school authorities for providing me
with the facilities and requisite laboratory conditions
for making this practical file.

I also extend my thanks to a number of teachers, my


classmates and friends who helped me to complete
this practical file successfully.

[ Name of THE Student ]

Practical Record Book – 2023 - 2024 Page 2 of 7


Artificial Intelligence [417 ] Class : X

CERTIFICATE
This is to certify that [Name of Student] , student of

Class X, [NAME OF SCHOOL] has completed the

PRACTICAL FILE during the academic year [SESSION]

towards partial fulfilment of credit for the ARTIFICIAL

INTELLIGENCE practical evaluation of 2023-2024

and submitted satisfactory report, as compiled in the

following pages, under my supervision.

Total number of practical certified are : 22.

Internal Examiner :
Signature :

Principal
Signature

Practical Record Book – 2023 - 2024 Page 3 of 7


Artificial Intelligence [417 ] Class : X

Date : School Seal :

CONTENTS
Sl. Practical Date Signature
No
.
1. Unit 3 Advanced Python Programs
1 Write a program to compute the net run rate for a tournament.
2 Write a program to check whether the given character is an
uppercase letter or lowercase letter or a digit or a special
character.
3 Write a program to find the maximum number out of the given
three numbers.
4 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 Rs. 650 plus Rs. 1.75 per unit in excess
above 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.

5 Write a program to check whether the entered number is


Armstrong or not.
6 Write a program to print a multiplication table of the entered
number.

Practical Record Book – 2023 - 2024 Page 4 of 7


Artificial Intelligence [417 ] Class : X

7 Write a program to generate the following pattern:


1
2 3
4 5 6
7 8 9 10

8 Write a program to create a list of students' marks with user -


defined values and find the maximum.

Sl. Practicals Date Signature


No.
9 Write a program to create a list of numbers and swap the content
with the next value divisible by 5. For example: list =
[4,25,31,7,35,44,55]
Output: [25,4,31,35,7,55,44]
10 Write a program to count the frequency of every element in a
given list.
2 Unit 4 Data Science Programs
1 Write a program to create a 2D array using NumPy.
2 Write a program to convert a python list to a NumPy
array.
3 Write a program to create matrix of 3x3 from 11 to 30
4 Write a program to create a data frame to store data of
candidates who appeared in interviews. The dataframe
columns are name, score, attempts, and qualify
(Yes/No). Assign rowindex as C001,C002, and so on
5 Write a program to create a dataframe named player
and store their data in the columns like team, no. of
matches runs, and average. Assign player name as row
index and Display only those player details whose score
is more than 1000.
6 Write a program to represent the data on the ratings of
mobile games on bar chart. The sample data is given as:
Games:Pubg, FreeFire, MineCraft, GTA-V, Callofduty,
FIFA 22.
Rating: 4.5,4.8,4.7,4.6,4.1,4.3
7 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]

Practical Record Book – 2023 - 2024 Page 5 of 7


Artificial Intelligence [417 ] Class : X

Sl. Practicals Date Signature


No.
8 Write a menu-driven program to calculate the mean,
mode 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]
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

9 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.
3 Computer Vision

Practical Record Book – 2023 - 2024 Page 6 of 7


Artificial Intelligence [417 ] Class : X

1 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?
2 Create your own pixels on piskelapp and make a gif
image.
3 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

Practical Record Book – 2023 - 2024 Page 7 of 7

You might also like