Question: Python3 language 4. (5 points) Getting Rect rect, which takes two positive integer arguments, length of the longest side of a rectangle with integer side

Python3 language
 Python3 language 4. (5 points) Getting Rect rect, which takes two

4. (5 points) Getting Rect rect, which takes two positive integer arguments, length of the longest side of a rectangle with integer side lengthas / t E and h whichb The perimeter of a rectangle with sides t and h is t+2h. The Hint: The built-in function round takes a sumber as its argument and round (2.0) evaluates to 2, and round (2.5) evaluates to 3 area is t.h. n show the esures def rect (area, perineter): Returo the loagest side of a rectangle vith area and perineter t >>> rect ( 10, >>> rect (5, >> rectas, 20) 14) A 2 x 5 rectangle # A 1 x S rectangle x s rectangle 12) 10 rectangle doesn't count because sides are not istegers False >>> rect (2s, 29) # A 2 x 12.5 rectang le doesn't count because side are not integra uhile while side side 6-side rstors Fal return

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!