0% found this document useful (0 votes)
9 views1 page

DESD Python Assignment1

The document outlines a series of Python programming tasks, including calculating the area and perimeter of a rectangle, manipulating a 4-digit number, finding the average of three integers, determining the maximum of three numbers, calculating student grades based on average marks, computing the factorial of a number, and finding factorials from 0 to 10 using a loop.
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 views1 page

DESD Python Assignment1

The document outlines a series of Python programming tasks, including calculating the area and perimeter of a rectangle, manipulating a 4-digit number, finding the average of three integers, determining the maximum of three numbers, calculating student grades based on average marks, computing the factorial of a number, and finding factorials from 0 to 10 using a loop.
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/ 1

1] Write a Python Program find an area of a rectangle and perimeter of the rectangle.

2] Write a program to accept a 4 digit number and


a. Display face value of each decimal digit
b. Display place value of each decimal digit
c. Display no in reverse order by changing decimal place values If user enters a 4 digit number 9361 outp
ut should be
a. 9 3 6 1
b. 9361 = 9 000 + 300 + 60 + 9
c. 1639

3] Write a program to accept three integer numbers and find its average.

4] Write a Python function to find the maximum of three numbers.

5)The marks obtained by a student in 3 different subjects are input by the user. Your program should calc
ulate the average of subjects and display the grade. The student gets a grade as per the following rules:
Average Grade
90-100 A
80-89 B
70-79 C
60-69 D
0-59 F

6) Write a Python function to calculate the factorial of a number (a non-negative integer). The function acc
epts the number as an argument.

7) Using for loop, write and run a Python program to find factorial from 0 to
10.

You might also like