AI Project File - X (2023-24)
AI Project File - X (2023-24)
ARTIFICIAL INTELLIGENCE
(417)
CLASS –X
2023-2024
PROJECT FILE
Class / sec:
Roll No. :
INDEX
11.
Write a program if the number is positive, we print
an appropriate message.
12.
Write a program to check if a person can vote
13.
Write a program to find the sum of all numbers stored
in a list.
14.
Write a program to add elements in the list.
15.
Write a program to remove elements from the list
1. Write a program to print “HELLO WORLD”.
print(“HELLO WORLD”)
x= 10
y=45
z=10
Sum= x+y+z
print(“The sum is :”, sum)
x= 10
y=45
diff= x-y
print(“The difference is :”, diff)
x= 2.5
y=4.5
mul= x*y
print(“The product is :”, mul)
KE= 1/2*(M*V*V)
M=10
V=10
KE= 1/2*(M*V*V)
print(“The energy is :”, KE)
r=2
A= 3.14*r*r
print(“The area is :”, A)
x=10
y=2
Mod= x%y
Div=x/y
print(“The modulus result is:”,Mod)
print(“The division result is:”, Div)
a=10
b=5
print(a+b,a-b,a*b,a/b,a%b,a**b,a//b)
else:
sum = 0
sum = sum+numbers
List = [ ]
print("Initial blank List: ")
print(List)
# Addition of Elements # in the List
List.append(1)
List.append(2)
List.append(4)
print("\nList after Addition : ")
print(List)
Output:
Initial blank List:
[]
List after Addition: [1, 2, 4]
Output:
Intial List: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
List after Removal: [1, 2, 3, 4, 7, 8, 9, 10, 11, 12]