Project File CLASS 10 AI
Project File CLASS 10 AI
Address:
Near Gandhi Institute, Opp. Jainpur, Hapur Bypass, Meerut
PRACTICAL FILE
Artificial Intelligence
Session- 2024-25
[Name of Student]
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 fulfillment of credit
for the ARTIFICIAL INTELLIGENCE practical
evaluation of 2024-25 and submitted satisfactory
report, as compiled in the following pages, under my
supervision.
ExaminerSignature
while(n>0):
sum +=n
n-=1
print'The sum of :',sum
9. Write a Python program to check given year is leap year or not.
year=int(input("Enter any Year: "))
if(year%4)==0:
if(year%100)==0:
if(year%400)==0:
print year, ‘is leap year'
else:
print year, ‘is not a leap year'
else:
print year, ‘is a leap year'
else:
print year, ‘is not a leap year'
10. Write a Python program to convert temperature Fahrenheit to
Celsius.
print(a)
a.reverse()
print(a)
13. Write a Python program to make a list of given integer inputs.
Store only even values given and print the list.
myint=562
mystr="430"
print(type(myint))
print(type(mystr))
newstr=int(mystr)
print(type(mystr))
mysum=myint+newstr
print(mysum)
print(type(mysum))
15. Write a Python program to check if a number is even or odd.
a=input("Enter a n;umber=")
if(a%2)==0:
print('Even Number')
else:
print('Odd Number')
Unit 4 Data Science
print(arr)
Output:
[[ 1 2 3 4]
[ 5 6 7 8]
[ 9 10 11 12]]
2. Create a 3x3 matrix with values ranging from 2 to 10.
import numpy as np
x = np.arange(2, 11).reshape(3,3)
print(x)
Output:
[[ 2 3 4]
[ 5 6 7]
[ 8 9 10]]