0% found this document useful (0 votes)
12 views

Python Programs pdf

Python program internal assistment file for class 10th

Uploaded by

choudharyveer353
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Python Programs pdf

Python program internal assistment file for class 10th

Uploaded by

choudharyveer353
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

-Python Programs-

1. WAP to calculate the surface area and volume of a cuboid:

Output:

2. WAP to ask for height in centimetres and convert it into feet and
inches:

Output:

3. WAP to check whether the given number is even or odd:


Output:

4. WAP to check whether the applicant is eligible to vote in the elections


or not:

Output:

5. WAP to check whether the entered number is positive and even,


positive and odd, negative and even, or negative and odd:

6. WAP to print numbers from 1-10 using range() function:


7. WAP to find the sum of all numbers stored in a list:

8. WAP to check whether the number input by the user is an Armstrong


number or not:

9. WAP to generate the following patterns:


11111
2222
333
44
5
10. WAP to delete an element from a list:

11. WAP to take the temperatures of all 7 days of the week and display
the average temperature of that week:

12. WAP that checks whether the number input from the user is a
palindrome or not.
13. WAP to calculate the mean, median, mode and standard deviation,
and variance for this dataset:

14. Addition by 2:
15. Floor division with 5:

16. Find the mean, median, mode and standard deviation:


17.Find the dimension, shape, and minimum and maximum values from
the array:

18. Create a bar chart using the Matplotlib library to compare student’s
marks:
19. Display an image using the learnt function:

20. To convert it to the more commonly RGB order:

You might also like