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

Python Practical Assignments for AI

class xi
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)
10 views3 pages

Python Practical Assignments for AI

class xi
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

PURV INTERNATIONAL SCHOOL, DURAGAPUR

DEPARTMENT OF COMPUTER SCIENCE


SESSION: 2025 - 2026
CLASS-10
SUBJECT- ARTIFICIAL INTELLIGENCE
SUBJECT CODE - 417
PRACTICAL ASSIGNMENT (PYTHON)
SL. NO. PARTICULARS
1. Write a python program to input a welcome message and print it.
2. Write a python program to obtain length and breadth of a
rectangle and calculate its area.
3. Write a python program to read distance in miles and print in
kilometers.
4. Write a python program to input a number & print its cube.
5. Write a python program to compute “how many days is a million
seconds?”
6. Write a python program to obtain three numbers and print their
sum.
7. Write a python program to calculate BMI (Body Mass Index) of a
person.
Body Mass Index is a simple calculation using a person’s height
and weight. The formula is BMI=kg/m2 where kg is a person’s
weight in kilograms and m2 is their height in meters squared.
8. Write a python program to input a value in kilometers and convert
it into miles(1 km = 0.621371 miles)
9. Write a python program to input a value in tonnes and convert it
into quintals and kilograms.
(1 tonne = 10 quintals, 1 tonne = 1000 kg, 1 quintal = 100 kg)
10. Write a python program to enter a small poem or poem versa and
print it.
11. Write a python program to input two numbers and swap them.
12. Write a python program to input three numbers and swap them as
this: 1st number becomes the 2nd number, 2nd number becomes the
3rd number and the 3rd number becomes the 1st number.
13. Write a python program to obtain temperature in Celsius and
convert it into Fahrenheit using formula oC x 9/5 + 32 = oF
14. Write a python program to input a value in miles and convert it
into kilometers. (1 km = 0.621371 miles)
15. Write a python program to input three numbers and swap them as
this: 2nd number gets the value of 1st + 2nd number, 3rd number
gets the value of 2nd + 3rd number.
16. Write a python program to input age from user and print if as per
the input-age, one is eligible to vote or not.
17. Write a python program to input two numbers and check if the two
numbers are equal or not.
18. Write a python program to check if a given number is more than
100 or not.
19. Write a python program that takes a number and check whether
the given number is odd or even.
20. Write a python program to accept three integers and print the
largest of the three. Make use of only if statement.
21. Write a python program to print table of a number, say 5.
22. Write a python program to print sum of natural numbers between
1 to 7.
23. Write a python program to calculate in how many days a work will
be completed by three persons A, B and C together. A, B, C take x
days, y days and z days respectively to do the job alone. The
formula to calculate the number of days if they work together is
xyz / (xy + yz +xz) days where x, y and z are given as input to the
program.
24. Write a python program to enter two integers and perform all
arithmetic operations on them.
25. Write a python program to swap two numbers using a third
variable.
26. Write a python program to find average of three numbers.
27. Write a python program to print all items from a list containing
some colour names in it.
28. Write a python program to compute total marks from the marks of
different subjects stored in the form of a list.
29. Write a python program to print sum of natural numbers between
1 to 7. Print the sum progressively, i.e., after adding each natural
number, print sum so far.
30. Write a python program to print squares of first 5 natural numbers.
31. Write a python program to input a number (num) and print the
sum of numbers from 1 to num.
32. Write a python program to calculate and print the sums of even
and odd integers of the first n natural numbers.
33. Write a python program to input a number and print how many
digits are there in the given number.
34. Write a python program to input two numbers (first number n1
being less than the second number n2) and print number of odd
numbers in the range n1 . . n2.
35. Write a python program to input a year and check if it is a leap
year or not.
Note:
a) Use SHOE LACE File and paper must one side blank and one side rule.
b) Write code in rule side.
c) Paste printed outputs / Write output at Blank Side.
d) Write Index properly.
e) Do not change program serial.
f) Write in good handwriting.
g) Use Proper indentation.
h) File should be neat and clean.
i) Avoid Corrections after writing program.

You might also like