0% found this document useful (0 votes)
10 views13 pages

AI Practical

The document is a practical file for the Artificial Intelligence course at Venkateshwar Global School for the session 2024-2025, submitted by Ishaan Taneja. It includes a series of Python programming tasks such as user input, arithmetic operations, area calculations, prime number checks, grading based on scores, and list modifications. Each task is outlined with a prompt for coding and expected output.

Uploaded by

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

AI Practical

The document is a practical file for the Artificial Intelligence course at Venkateshwar Global School for the session 2024-2025, submitted by Ishaan Taneja. It includes a series of Python programming tasks such as user input, arithmetic operations, area calculations, prime number checks, grading based on scores, and list modifications. Each task is outlined with a prompt for coding and expected output.

Uploaded by

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

VENKATESHWAR GLOBAL SCHOOL

Session 2024-2025
ARTIFICIAL INTELLIGENCE (417)
PRACTICAL FILE

Submitted By:-
Name: Ishaan Taneja
Class and Section: IX Columba
Roll No.: 13

INDEX
1. Write a Python program to ask for the user’s name and address and print the
same in the given format.
Name:
Last Name:
Address:
2. Write a Python program to print numbers from 1 to 10.
3. If X=10 and Y=50, write a Python program to perform all the arithmetic
operations.
4. Write a Python program to calculate the area of a right-angled triangle.
5. Write a Python program to check whether the input number is prime or not.
6. Write a Python program to ask the user for their exam score out of 100 and
based on the score, print their grade according to the following criteria.

Marks Grade

90+ A

80-89 B
70-79 C

60-69 D

50-59 E

BELOW 50 FAIL
7. Write a Python program to print all even numbers from 1-20.
8. Write a Python program to print a multiplication table of entered numbers.
9. Write a Python program that takes input of the temperature in Celsius from the
user and converts it to Fahrenheit and Kelvin.
Fahrenheit= 1.8* Celsius +32 Kelvin= 273.15
+ Celsius
10. Write a Python program to implement an increment to the employees based on
their appraisal score. Appraisal Score Rate of Increment.

0-10 3%
11-30 5%
31-50 8%
51-80 10%
81-100 15
%
11. Write a Python program to find the length of the list and simply swap the first
element with the last element.
A = [10,23,45,67,89,0]
12. Write a Python program to create a list fruit= [‘apple’, ‘mango’, ‘grapes’]. Add
‘banana’ and ‘strawberry’ at the end of the list using the list function.

Question 1
Ask for the User’s Name and Address
Code :

Output :

Question 2
Print Numbers from 1 to 10

Code :

Output :
Question 3
Perform All Arithmetic Operations

Code :
Output :

Question 4
Calculate the Area of a Right-Angled Triangle

Code :

Output :
Question 5
Check if a Number is Prime

Code :

O
utput :
Question 6
Print Grade Based on Exam Score

Code :

Output :

Question 7
Print All Even Numbers from 1 to 20
Code :

Output :

Question 8
Print a Multiplication Table for an Entered Number
Code :

Output :

Question 9
Convert Temperature from Celsius to Fahrenheit and Kelvin
Code :

Output :

Question 10
Calculate Increment Based on Appraisal Score
Code :

Output :

Question 11
Swap the First and Last Elements of a List

Code :
Output :

Question 12
Modify a List by Adding New Items

Code :

Output :

You might also like