0% found this document useful (0 votes)
13 views24 pages

Python Programs for Basic Calculations

Uploaded by

tharun23102007
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)
13 views24 pages

Python Programs for Basic Calculations

Uploaded by

tharun23102007
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

INPUT & OUTPUT

[Link] : 10a AREA OF A RECTANGULAR ROOM


Date :

AIM:
To write a Python program to find the area of a rectangular room.

PROBLEM:
PROGRAM:
OUTPUT:

RESULT:
Python program to find the area of a rectangular room was executed
successfully.
INPUT & OUTPUT
[Link]:10b VOLUME OF SPHERE
Date:

AIM:
To write a Python program to calculate the volume of sphere.

PROBLEM:
PROGRAM:

OUTPUT:

RESULT:
Python program to calculate the volume of sphere was executed successfully.
FLOW CONTROL & OPERATORS

[Link] : 11a EVEN OR ODD CURRENCY


Date :

AIM:
To write a Python program to check whether the given currency is even or
odd.

PROBLEM:
PROGRAM:
OUTPUT:

RESULT:
Python program to check whether the given currency is even or odd was
executed successfully.
FLOW CONTROL & OPERATORS

[Link]:11b GREATEST AMONG THREE NUMBERS


Date:

AIM:
To write a Python program to display the greatest among three numbers.
PROBLEM:
PROGRAM:
OUTPUT:

RESULT:
Python program to display the greatest among three numbers was executed
successfully.
ARRAYS & LOOPS

[Link]:12a LAYOUT OF THE DECORATION


Date:

AIM:
To write a Python program to display the final layout of decoration.
PROBLEM:
PROGRAM:
OUTPUT:

RESULT:
Python program to display the final layout of decoration was executed
successfully.
ARRAYS & LOOPS

[Link]:12b PYRAMID PATTERN


Date:

AIM:
To write a Python program to display pyramid pattern using ‘*’.
PROBLEM:
PROGRAM:

OUTPUT:

RESULT:
Python program to display pyramid pattern using ‘*’ was executed
successfully.
STRINGS

[Link]:13a ALPHANUMERIC
Date:

AIM:
To write a Python program to check whether the given input is alphanumeric
value or not.
PROBLEM:
PROGRAM:

OUTPUT:

RESULT:
Python program to check whether the given input is alphanumeric value or
not was executed successfully.
STRINGS

[Link]:13b STRING REVERSING


Date:

AIM:
To write a Python program to display the given string in reverse order.
PROBLEM:
PROGRAM:

OUTPUT:

RESULT:
Python program to display the given string in reverse order was executed
successfully.
FUNCTIONS

[Link]:14a PERFECT NUMBER OR NOT USING


Date:
FUNCTIONS

AIM:
To write a Python program to check whether the given number is a perfect
number or not using functions.
PROBLEM:
PROGRAM:

OUTPUT:

RESULT:
Python program to check whether the given number is a perfect number or
not using functions was executed successfully.
FUNCTIONS

[Link]:14b MINIMUM NUMBER OF PACKAGES


Date:

AIM:
To write a Python program to calculate the minimum number of packages
Luke must drop to supply all of his bases.
PROBLEM:
PROGRAM:

OUTPUT:

RESULT:
Python program to calculate the minimum number of packages Luke must
drop to supply all of his bases was executed successfully.

You might also like