INDEX
S.No. Topic Page Signature
No.
1. WAP to accept two numbers and check for their divisibility i.e. if 2
the first number is completely divisible by the second. The
program should be able to handle divide by zero error i.e. the
program should carry out divisibility only if the denominator is
non-zero.
2. WAP to accept two numbers and a mathematical operator and 2-4
carry out the calculation as per the given operator. For example
if the given operator is ‘+’, then the program should find the
sum of the two numbers. Check for all 7 Python mathematical
operators.
3. WAP to accept the first name, last name and gender of a user 4
and display the following message “Hello, Mr./Ms Firstname
Lastname Welcome!! Hope You like this program.”
4. WAP to accept marks of a student in 5 subjects and calculate 4-6
the total marks, percentage, grade and result of the student.
5. WAP to extract the last digit of any number entered by the user 6
and check whether the digit is divisible by 3.
6. WAP to provide the user choice of finding the area of closed 6-8
figures (square, rectangle, circle, triangle). Display a menu to
the user for accepting input for the choice of the figure and take
input, calculate, and display the area of the figure chosen by the
user accordingly.
7. WAP to accept an alphabet and check whether it is a vowel or 8
not.
8. WAP to accept the customer type and bill amount and calculate 8-9
the discount and net amount to be paid. The discount is given
according to customer type.
9. WAP to accept the purchase amount and calculate the Discount 9-10
as well as the net amount to be paid.
10. WAP to accept three numbers and find the largest of them.
10-11
11. WAP to accept the three sides of a triangle and find if given 11
triangle dimensions make a Pythagoras triangle.
12. WAP to accept the three dimensions of a triangle and find if
with given triangle dimensions, the triangle formation is 11-12
possible or not.
13. WAP to accept a number and display its multiplication table up 12
till the given last number.
14. Write a menu driven program that gives the choice to the user
to find the sum of any of the following series: 13-14
(i) 1+2+3+....... +N
(ii) 1+3+5+....... +N
15. WAP to compute the sum of the following series: 14
2²+4²+6²+....... +N²
16. WAP to accept the starting no., ending no., difference in terms
of series, and display the series as well as the sum of the series. 14-15
17. WAP to find factors of a given number and also find if the given
no. is a perfect no. 15-16
18. WAP to accept the base and exponent and find the power. 16
19. WAP to accept a number and find its factorial.
16-17
20. WAP to find the sum of the following series: 17
1/1 + 1/2 + 1/3 + 1/4 + ............... 1/N
21. WAP to accept the beginning number, ending number, and
difference in the terms of the series and display the terms of 17-18
the series.
22. WAP to accept a string and find the number of lowercase
alphabets, uppercase alphabets, digits, blank spaces, and 18-19
special characters in it separately.