Question: Phython 2. having trouble making this work 2. Areas of Rectangles The area of a rectangle is the rectangles length times its width. Write a
Phython 2. having trouble making this work
2. Areas of Rectangles
The area of a rectangle is the rectangles length times its width. Write a program that asks for the length and width of two rectangles. The program should tell the user which rectangle has the greater area, or if the areas are the same. Need to include the source code created in a module (.py file) as text


#main function def main(): Enter length and width of first rectangle. #prompt user to enter length length1-int(input("Please input first rectangle length: ") #prompt user to enter width width1-int(input("Please input first rectangle width:" #calculate area area1-length1*width1 Enter length and width of second rectangle. #prompt user to enter length length2-int(input"Please input second rectangle length: ")) #prompt user to enter width width2=int(input("Please input second rectangle width" #calculate area area-length2"width2 Display area of two rectangles. #display area of both rectangles
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
