0% found this document useful (0 votes)
6 views5 pages

AI Practical Lab Exercises 2024-25

Uploaded by

Super Gamerz960
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)
6 views5 pages

AI Practical Lab Exercises 2024-25

Uploaded by

Super Gamerz960
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

Artificial Intelligence (417)

Practical Lab file


Session 2024-25

Submitted to: Submitted By:


Ms Nimita Chawla Harlin Singh (10 th-A)
TGT – ICT
1. To calculate simple interest if the principal amount= 2000, rate of interest=
4.5% and time= 10 years.
CODE:

OUTPUT:

2. To find the sum of 2 numbers 15 and 20.


CODE:

OUTPUT:

3. To calculate of area of triangle with base and height using input function.
CODE:

OUTPUT:

4. To calculate the surface area and volume of a cuboid using input function.
CODE:
OUTPUT:

5. To calculate average marks of 3 subjects using input function.


CODE:

OUTPUT:

6. To 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-
Print the whole list, Delete the name "Vikram" from the list, Add the name
"Jay" at the end, Remove the item which is at the second position.

CODE:
OUTPUT:

7. To create a list of the first 10 even numbers, add 1 to each list item and print
the final list.
CODE:

OUTPUT:

8. Program to check if a person can vote.


CODE:

OUTPUT:

9. Input a number and check if the number is positive, negative or zero and
display an appropriate message.
CODE:
OUTPUT:

10. To print the first 10 natural numbers using for loop.


CODE:

OUTPUT:

You might also like