0% found this document useful (0 votes)
50 views16 pages

Class 10 AI Practical File 2024-25

File

Uploaded by

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

Class 10 AI Practical File 2024-25

File

Uploaded by

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

Godavari English Medium CBSE School,

Jalgaon
NH6), Jalgaon, Maharashtra

Affiliation Number: 1130259

Year :2024-25

PRACTICAL RECORD FILE


ARTIFICIAL INTELLIGENCE
CLASS 10
Year:2024-25

SUBMITTED BY:

SUBJECT TEACHER: Mrs. Chetana Mahajan

CLASS: 10th Div:

ROLL NO:

Artificial Intelligence Class -10th Practical File GEMS ,Jalgaon


ACKNOWLEDGEMENT

I wish to express my deep sense of gratitude and


indebtedness to our learned teacher Mrs. Chetana Mahajan , AI
Teacher, Godavari English Medium CBSE School, Jalgaon for
her invaluable help, advice and guidance in the preparation of
this practical File.

I am also greatly indebted to our principal Mrs. Nilima


Chaudhari 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 Student]

Artificial Intelligence Class -10th Practical File GEMS ,Jalgaon


CERTIFICATE

This is to certify ____________________________________


student of Class X, Godavari English Medium CBSE School,
Jalgaon has completed the PRACTICAL FILE during the
academic year 2024-25 towards partial fulfilment of credit for the
ARTIFICIAL INTELLIGENCE practical evaluation of 2024-25
and submitted satisfactory report, as compiled in the following
pages, under my supervision.

Total number of practical certified are : 12

Date:

Internal Examiner School Seal Signature Principal

Index
[Link] Practical Date Signature

Artificial Intelligence Class -10th Practical File GEMS ,Jalgaon


1 Unit 3 :Advanced Python Programs
1 Python program to find the factorial of a number
provided by the user.
2 Write a python code to input the length of the three
sides of a triangle and display whether the triangle can
be formed with the inputs or not .If a triangle can be
formed then display whether the triangle be scalene ,
isosceles or equilateral triangle.
3 Python program to check whether a number is prime or
not

4 Python program to reverse a string


5 Python program to check whether a person is eligible
for voting or not eligible.

2 Unit 4:Data Science Programs


6 Write Program to display the chart from (2,5) to (9,10)
7 Write a program to calculate mean, medium and mode
using numbers of the following list of a distance travel
by a car in a week. [95,90,49,71,90,100,55]
8
Aim: Using numpy package , create an array of five
marks and display the average of all marks.

9 Write a program to display scatter chart for the


following points(2.5),(9,10),(8,3),(5,7),(6,18)
10 Write a program to add the elements of the two lists
3 Uni 5: Computer Vision Program
11 Aim: Read CSV file save in your system and display its
information.

12 Aim: Using the library numpy and matplotlib libraries


Upload an image of your favourite food and display the
picture in RGB colour mode.

Practical No.1

Artificial Intelligence Class -10th Practical File GEMS ,Jalgaon


Aim: Python program to find the factorial of a number provided
by the user.

# To take input from the user


num = int(input("Enter a number: "))
factorial = 1
# check if the number is negative, positive or zero
if num < 0:
print("Sorry, factorial does not exist for negative numbers")
elif num == 0:
print("The factorial of 0 is 1")
else:
for i in range(1,num + 1):
factorial = factorial*i
print("The factorial of",num,"is",factorial)
_______________________________________________________________

Output:
Enter a number: 5

The factorial of 5 is 120

Practical 2

Artificial Intelligence Class -10th Practical File GEMS ,Jalgaon


Aim: Write a python code to input the length of the three sides of
a triangle and display whether the triangle can be formed with
the inputs or not. If a triangle can be formed then display whether
the triangle be scalene , isosceles or equilateral triangle.
print("Input the sides of triangle")
A = int(input("A: "))
B = int(input("B: "))
C = int(input("C: "))
if A == B == C:
print("Equilateral triangle")
elif A==B or B==C or C==A:
print("Isosceles triangle")
else:
print("Scalene triangle")
_____________________________________________________________

Output:

Input the sides of triangle


A: 5
B: 6
C: 7
Scalene triangle

Practical 3

Artificial Intelligence Class -10th Practical File GEMS ,Jalgaon


Aim: Python program to check whether a number is prime or
not.

# To take input from the user


num = int(input("Enter a number: "))

flag = False

if num == 1:
print(num, "is not a prime number")
elif num > 1:
# check for factors
for i in range(2, num):
if (num % i) == 0:
# if factor is found, set flag to True
print(num, "is not a prime number")
break
else:
print(num, "is a prime number")
________________________________________________________________

Output:
Enter a number: 24

24 is not a prime number

Artificial Intelligence Class -10th Practical File GEMS ,Jalgaon


Practical 4

Aim: Python program to reverse a string.

txt = "Artificial Intellegence" [::-1]


print("Reverse string of Arificial Intelligence is:- ",txt)
______________________________________________________________

Output:
Reverse string of Arificial Intelligence is:- ecnegelletnI laicifitrA

Artificial Intelligence Class -10th Practical File GEMS ,Jalgaon


Practical 5

Aim :Python program to check whether a person is eligible for


voting or not eligible.

age = int(input("Enter Age of person"))


if age > 18:
print("Eligible for Voting")
else :
print(" not Eligible for Voting")
________________________________________________________________

Output:
Enter Age of person 16
not Eligible for Voting

Artificial Intelligence Class -10th Practical File GEMS ,Jalgaon


Practical 6

Aim : Write Program to display the chart from (2,5) to (9,10)

import [Link] as plt


import numpy as np
x= [Link]([2,3,9,10])
y= x*2
[Link](x,y)
[Link]("X-axis")
[Link]("Y-axis")
[Link]("Line Chart")
[Link]()
________________________________________________
Output:

Artificial Intelligence Class -10th Practical File GEMS ,Jalgaon


Practical 7

Aim : Write a program to calculate mean, medium and mode


using numbers of the following list of a distance travel by a car in
a week. [95,90,49,71,90,100,55]

import statistics
d=[95,90,49,71,90,100,55]
m1=[Link](d)
m2=[Link](d)
m3=[Link](d)
print("The mean is:",m1)
print("The median is:",m2)
print("The mode is:",m3)
________________________________________________________________

Output:
The mean is: 78.57142857142857
The median is: 90
The mode is: 90

Artificial Intelligence Class -10th Practical File GEMS ,Jalgaon


Practical 8

Aim: Using numpy package , create an array of five marks


and display the average of all marks.

import numpy as np
import statistics
a = [Link]([95,90,49,71,80])
m = [Link](a)
print("The average is :",m)
__________________________________________________

Output:
The average is : 77

Artificial Intelligence Class -10th Practical File GEMS ,Jalgaon


Practical 9

Aim: Write a program to display scatter chart for the


following points(2.5),(9,10),(8,3),(5,7),(6,18)
import [Link] as plt
import numpy as np
(2,5),(9,10),(8,3),(5,7),(6,18)
x = [Link]([2,9,8,5,6])
y = [Link]([5,10,3,7,18])
[Link]("X-axis")
[Link]("Y-axis")
[Link]("Scatter Charts")
[Link](x,y)
[Link]()
________________________________________________________________
Output:

Artificial Intelligence Class -10th Practical File GEMS ,Jalgaon


Practical 10

Aim: Write a program to add the elements of the two lists


s1=[32,45,40]
s2=[35,30,42,38]
print("******List (s1) *********")
print(s1,len(s1))
print("******List (s2) *********")
print(s2,len(s2))
All=s1+s2
print("*****List All*********")
print(All,len(All))

Output:
******List (s1) *********
[32, 45, 40] 3
******List (s2) *********
[35, 30, 42, 38] 4
*****List All*********
[32, 45, 40, 35, 30, 42, 38] 7

Artificial Intelligence Class -10th Practical File GEMS ,Jalgaon


Practical 11

Aim: Read CSV file save in your system and display its
information.

import pandas as pd
data = pd.read_csv("[Link]")
data

Output:

Artificial Intelligence Class -10th Practical File GEMS ,Jalgaon


Practical 12

Aim: Using the library numpy and matplotlib libraries


Upload an image of your favourite food and display the
picture in RGB colour mode.

import numpy as np
import [Link] as plt
img=[Link]("[Link]")
[Link](img)
[Link]("My Favourite Food")
Output:

Artificial Intelligence Class -10th Practical File GEMS ,Jalgaon

You might also like