0% found this document useful (0 votes)
40 views3 pages

Practical Index Class X AI

Uploaded by

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

Practical Index Class X AI

Uploaded by

Jaskaran Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Practical Index Class X

Subject: Artificial Intelligence (Code 417)


Session 2024-25
SNO Description Sign/Date

I Python Revision
Using Conditional and looping statement
1. WAP to check if a person can vote
2. WAP to check the grade of a student
3. Input a number and check if the number is
positive, negative or zero and display an
appropriate message

II 4. WAP to print first 10 natural numbers


5. WAP to print odd numbers from 1 to n
6. WAP to print sum of first 10 natural numbers

III Using List


7. Create a list in Python of children selected for
science quiz with following names- [Arjun,
Sonakshi, Vikram, Sandhya, Sonal, Isha,
Kartik]
Perform the following tasks on the list in
sequence-
i. Print the whole list
ii. Delete the name “Vikram” from the list
iii. Add the name “Jay” at the end
iv. Remove the item which is at the second position.

IV 8. Create a list num=[23,10,15,90,68,45]


i. Print the length of the list
ii. Print the elements from second to
fourth position using positive
indexing
iii. Print the elements from position third to fifth using
negative indexing

V 9. Create a list of first 5 even numbers, add 1 to


each list item and print the final list.
10. Create a list List_1=[70,80,60,40]. Add the
elements [24,25,22] using extend function.
Now sort the final list in ascending order and
print it.
11. Write a program to add the elements of the two lists.

VI Using Numpy
12. Write a program to calculate mean, median and mode using
Numpy
13. Write a program to display line chart from (2,5) to (9,10).
14. Write a program to display a scatter chart for the
following points (2,5), (9,10), (8,3), (5,7), (6,18).
VII Using CSV file
15. Read csv file saved in your system and display 10 rows.
16. Read csv file saved in your system and display its
information

VIII Working with Image


17. Write a program to read an image and display using Python
18. Write a program to read an image and identify its shape using
Python

You might also like