PRACTICAL FILE
ARTIFICIAL INTELLIGENCE
(SUBJECT CODE :417)
Submitted byROLLNO:__________________________
Submitted in partial fulfilment of the requirement for
qualifying
Secondary Examination
(2024-25)
Queen’s Valley School
Dwarka, New Delhi
Under Central Board of Secondary Education
New Delhi
Queen’s Valley School
Certificate
THIS IS TO CERTIFY THAT MISS. _______________________________HAS
SATISFACTORILY COMPLETED THE EXPERIMENTS IN PRACTICAL - ARTIFICIAL INTELLIGENCE PRESCRIBED
BY THE CENTRAL BOARD OF SECONDARY EDUCATION IN THE LABORATORY OF THE SCHOOL IN
YEAR 2024 TO 2025
DATE…… /…../2024
SIGNATURE OF THE PRINCIPAL
SIGNATURE OF THE TEACHER
INDEX
S.NO
UNIT
TOPIC
NO. OF
TEACHER’S
QUESTIONS SIGNATURE
1.
UNIT:3
ADVANCED
PYTHON
11
2.
UNIT:4
DATA
SCIENCE
4
3.
UNIT:5
COMPUTER
VISION
5
Unit :3 advanced python
Q.1
Accessing the elements of list
list1=['D','A','T','A']
i=list1[3]
print(i)
Q.2Joining lists
l1= [1,2,3,4]
l2= [5,6,7,8]
l3=[l1+l2]
print(l3)
Q.3Replicating lists
l1= [1,2,3]
l2=l1*2
print(l2)
Q.4Slicing list
l1= [10,20,30,40,50,60,70,80]
l2=l1[2:3]
print(l2)
Q.5Add a new element to the end of the list
l1= [10,20,30,40,50,60,70,80]
l1. append (90)
print(l1)
Q.6Add multiple elements in an existing list
l1= [10,20,30,40,50,60,70,80]
l1. extend ([90,100,110])
print(l1)
Q.7Insert an element in the existing list at a specified location
l1= [10,20,30,40,50,60,70,80]
l1. insert (2,100)
print(l1)
Q.8Remove an element from the list
l1= [10,20,30,40,50,60,70,80]
l1.pop ()
print(l1)
Q.9Remove the first occurrence of an element
l1= [10,20,30,40,50,60,70,80]
l1. remove (60)
print(l1)
Q.10Delete the entire list
l1= [10,20,30,40,50,60,70,80]
del l1[0:4:2]
print(l1)
Q.11l1= [10,20,30,40,50,60,70,80]
del l1[3]
print(l1)
Q8
Q10
u
Q12
Q13
Q1
\
Q2
Q3
Q4
Q5