Requirements:
Python Question 5a:
program5_1.pyThis file is about rectangles. It requires a main function andthree custom functions,all of which take therectangle dimensions as arguments.
Themain function shouldprompt the user for the rectangle dimensions (asfloats) and execute the custom functions. All calculations should be printed accurate tothree decimal places using f-strings.Sample Output(See sample_image1.png)
Python Question 5b:
program5_2.pyThis program shouldimport program5_1 as a module. Start by making acopy of program5_1.py. Then delete the three custom functions and adjust the code to demonstrate that you understandhow the dunders work in Python.
Extracted text: Enter rectangle side 1 15.0 Enter rectangle side 2 8.0 The area is 120.000 The perimeter is 46.000 Rectangle diagonal is 17.000
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here