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

PYTHON PROGRAMMING PRACTICAL FILE

The document is a practical file for Python programming containing a list of 50 programming exercises. These exercises cover a range of topics including basic arithmetic operations, geometry calculations, conditional statements, loops, and functions. Each task is designed to help learners practice and enhance their programming skills in Python.

Uploaded by

Yug Tomar
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)
9 views

PYTHON PROGRAMMING PRACTICAL FILE

The document is a practical file for Python programming containing a list of 50 programming exercises. These exercises cover a range of topics including basic arithmetic operations, geometry calculations, conditional statements, loops, and functions. Each task is designed to help learners practice and enhance their programming skills in Python.

Uploaded by

Yug Tomar
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
You are on page 1/ 3

PYTHON PROGRAMMING PRACTICAL FILE

1. Write a program to accepts two integers and print their sum.


2. Write a program that accepts radius of a circle and prints its area.
3. Write a program that accepts base and height and calculate the area of triangle.
4. Write a program that inputs a student’s marks in three subjects (out of 100) and
prints the percentage marks.
5. Write a program to calculate simple interest.
6. Write a program to read two numbers and prints their quotient and remainder.
7. Write a program that accepts length and breadth of rectangle and calculate its area.
8. Write a program that accepts weight in Kg and height in meters and calculate the BMI.
9. Write a program that reads the number n and print the value of n², n³ and n⁴.
10. Write a program to accept the marks of five subjects and calculate the average marks.
11. Write a program to accept the height in cm and convert it into feet and inches.
12. Write a program to read base, width and height of parallelogram and calculate its area
and perimeter.
13. Write a program to obtain x, y, z and calculate 4x⁴+3y³+9z+6π
14. To find final amount for given cost-qty-discount(%).
15. Write a python program that calculates and prints the value according to the given
formula: Q =
Square root of [(2 * C * D)/H]
16. To calculate cost of fencing a rectangular park where L=70 and B=20, rate per feet =
Rs.10/-
[P=2(L+B)]
17. To calculate cost of cultivating a rectangular field with dimensions L=7000 and
B=2000,
rate per Sq/feet = Rs.10/- [A = L*B]
18. To calculate interest (Simple and Compound) when principal, rate and time are given [S.I. =

(PRT)/100, C.I. = P(1+R/100)T-P]


19. To calculate profit/loss for given Cost and Sell Price
20. To calculate EMI for Amount, Period and Interest.
21. WAP to check whether a number is divisible by 5 and 11 or not.
22. WAP to display Digit in text (0 to 9)
23. WAP to Check given character is vowel or not.
24. Write a python program to check whether the year is leap year or not.
25. Write a program to print roots of a quadratic equation ax2 + bx +c=0 (where a≠0).
26. WAP to input marks in 3 subjects, compute average and then calculate grades as per
following guidelines:

27.
Grade Remarks MArks

A Level 4,above agency- 80% and above


normalized standards

B Level 3,at agency-normalized 70-79%


Standards

C Level2,Below but approaching 60-69%


agency- normalized standards

D Level 1-well below agency- 50-59%


normalized standards

E Level 1- too below agency- 40-49%


normalized standards

R Remedial standards 39% and below

28. Write a program to input a number and print its square if it is odd, otherwise print its square
root.
29. Input three angles and determine if they form a triangle or not.
30. Write a program to calculate BMI and print the nutritional status as per following table:
Nutritional Status WHO criteria BMI cut-off
Underweight <18.5
Normal 18.5-24.9
Overweight 25-29.9
Obese ≥30
31. Write a program to find largest among three integers.
32. Write a program that accepts the age and print if one is eligible to vote or not.
33. Write a program that accepts two numbers and check if the first number is fully
divisible by second number or not.
34. Write a program to accept the year and check if it is a leap year or not.
35. Write a program to input a number and check whether it is positive, negative or zero.
36. Write a program to display a menu for calculating area of circle or perimeter of the
circle.
37. Write a program that reads two numbers and an arithmetic operator and displays the
computed result.
38. Write a program to print whether a given character is an uppercase or a lowercase
character or a digit or any other character.
39. WAP to display all number from 1 to 15.
40. WAP to display sum of all numbers from 1 to 10.
41. WAP to display Average of numbers from 1 to 10.
42. WAP to display multiply all numbers from 1 to 10.
43. WAP to display Square all numbers from 1to 20.
44. WAP to display Cube all numbers from 1to 100
45. WAP to display all odd numbers from 1to 100.
46. WAP to display all even numbers from 1to 100.
47. Take an integer input N from the user. Print N Fibonacci numbers. Recall that
Fibonacci series progresses as 0 1 1 2 3 5 8…
48. Take an integer input N from the user. Find Factorial of N and print it .
49. Print check whether a number is prime numbers or not.
50. Take an integer input N from the user. Print the table of N.

You might also like