You are on page 1of 19

CREANE MEMORIAL HIGH

SCHOOL

ARTIFICIAL INTELLIGENCE

PRACTICAL FILE (PYTHON)


Class – IX
Session: 2021-22
Student's Detail:-
NAME:- SHASWAT DEV
CLASS:- 9TH
SECTION:- D
ROLL NUMBER:- 40
DATE OF SUBMISSION:- 5TH MARCH, 2022

------------------------------------
Signature
INDEX
Sr.No. ASSIGNMENT Page No.

Write a program for accepting three numbers from the


1. 1-2
user and adding them.
Write a Python program to convert Celsius measurement
2. 2-3
to Fahrenheit.
Write a Python program to find the area of a rectangle
3. 3-4
with values of length and breadth.
4. Write a Python program to display thought of the day. 4-5
Write a Python program to accept name and address
5. 5-6
from a user and display it.
Write a Python program to accept side of a square and
6. 6-7
display the area of a square.
Write a Python program to accept length and breadth of a
7. 7-8
rectangle and display the perimeter of a rectangle.
Write a Python program accept two numbers from user
8. 8-9
and display the remainder.
Write a Python program to accept hours from the user
9. 9-10
and display equivalent minutes.
Write a Python program to create a list containing
10. elements [7, 8, 9, 10, 11] and add the element 12 to the 10-11
list.
Write a Python program to create a list containing eight
11. numbers. Replace the third and fifth number with the 11-12
square of the numbers to their immediate left.
Write a Python program to input two numbers from the
12. 12-13
user and display the sum and product of these numbers.
Write a Python program which assigns values to four
13. 13-14
variables and show their addition on the screen.
Write a Python program which assigns values to four
14. 14-15
variables and show their addition on the screen.
Write a Python program to take three numbers as input
15. from the user. Store these numbers in a list. Display their 15-16
product on the screen.

16. Write a Python program to print factorial of number 10. 16-17


Ques 1) Write a program for accepting three numbers from the user and
adding them.
Program :-

Output:-

Page no. 1
Ques 2) Write a Python program to convert Celsius measurement to
Fahrenheit.
Program:-

Page no. 2
Output:-

Ques 3) Write a Python program to find the area of a rectangle with values
of length and breadth.
Program:-

Page no. 3
Output:-

Ques 4) Write a Python program to display thought of the day.


Program:-

Page no. 4
Output:-

Ques 5) Write a Python program to accept name and address from a user
and display it.
Program:-

Page no. 5
Output:-

Ques 6) Write a Python program to accept side of a square and display the
area of a square.
Program:-

Page no. 6
Output:-

Ques 7) Write a Python program to accept length and breadth of a


rectangle and display the perimeter of a rectangle.
Program:-

Page no. 7
Output:-

Ques 8) Write a Python program accept two numbers from user and display
the remainder.
Program:-

Page no. 8
Output:-

Ques 9) Write a Python program to accept hours from the user and display
equivalent minutes.
Program:-

Page no. 9
Output:-

Ques 10) Write a Python program to create a list containing elements [7, 8,
9, 10, 11] and add the element 12 to the list.
Program:-

Page no. 10
Output:-

Ques 11) Write a Python program to create a list containing eight numbers.
Replace the third and fifth number with the square of the numbers to their
immediate left.
Program:-

Page no. 11
Output:-

Ques 12) Write a Python program to input two numbers from the user and
display the sum and product of these numbers.
Program:-

Page no. 12
Output:-

Ques 13) Write a Python program which assigns values to four variables
and show their addition on the screen.
Program:-

Page no. 13
Output:-

Ques 14) Write a Python program for accepting five numbers from the user
and show their product on the screen.
Program:-

Page no. 14
Output:-

Ques 15) Write a Python program to take three numbers as input from the
user. Store these numbers in a list. Display their product on the screen.
Program:-

Page no. 15
Output:-

Ques 16) Write a Python program to print factorial of number 10.


Program:-

Page no. 16
Output:-

Page no. 17

You might also like