0% found this document useful (0 votes)
21 views14 pages

Python Program

Uploaded by

xeanok2009
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views14 pages

Python Program

Uploaded by

xeanok2009
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 14

Python Program

1. Program to add two Numbers.

2. Program to Subtract two Numbers

3. Program to divide two Number


4. Program to multiply two Numbers

5. Program to print square and cube of nay number accepted by the use
6. Program to calculate area of Square

7. Program to calculate area of Rectangle


8. Program to calculate area of Triangle.

9. Program to calculate area of Circle.


11. Program to calculate circumference of Circle

12. Program to calculate Simple Interest


13. Program to convert the temperature from Degree Celsius to Fahrenheit.

14. Program to print check whether a number is odd /even


15. Program to print check whether a number is positive or negative.

16. Program to print check equality of two numbers


17. Program to print check whether a person can vote or not.

18. Program to check greater of 2 Numbers


19. Program to check greater of 3 Numbers.

20. Program to find average of three numbers.


21. Program to find average of five numbers.

22. Program to swap two numbers.


23. Program to swap two numbers without using third variable

24. Program to print first n natural numbers.


25. Program to print first n odd numbers

26. Program to print first n even numbers.


27.Program to print multiplication table for the number which is given as an
input.

28. Program to print Fibonacci series till n term, Eg : ( 0 1 1 2 3 5 8 13


………………)
30.Write a program in Python to accept five subject marks, calculate
percentage and display the result as per the following. 1. If percentage < 35
then print “fail” 2. If percentage between 35-50 print “Average” 3. If
percentage between 51-70 print “Good” 4. If percentage between 71-80 print
“Very Good” Else print “Excellent” 5. print “Exit”

You might also like