Question: Hello i need some help with Python programming my code is supposed to display this Here is my code and it is not working i

Hello i need some help with Python programming my code is supposed to display this Hello i need some help with Python programming my code is supposed

Here is my code and it is not working i am using python 3.8.1 to write out my code

import circle import rectangle while (1 == 1): print ('tMENU') print ('1) Area of a circle' print ('2) Circumference of a circle' print ('3) Area of a rectangle' print ('4) Perimeter of a rectangle' print ('5) QUIT' choice = int(raw_input('Enter your choice: ')); if choice == 1: radius = float(raw_input('Enter the circle\'s radius: ')); print 'The area is ',circle.area(radius) elif choice == 2: radius = float(raw_input('Enter the circle\'s radius: ')); print 'The circumference is ',circle.circumference(radius) elif choice == 3: width = float(raw_input('Enter the rectangle\'s width: ')); height = float(raw_input('Enter the rectangle\'s height: ')); print 'The area is ',rectangle.area(width,height) elif choice == 4: width = float(raw_input('Enter the rectangle\'s width: ')); height = float(raw_input('Enter the rectangle\'s height: ')); print 'The perimeter is ',rectangle.perimeter(width,height) elif choice == 5: break circle.py def area(radius): return 3.14*radius*radius def circumference(radius): return 2*3.14*radius rectangle.py def area(width, length): return width*length def perimeter(width,length): return 2*(length+width)

> > RESTART MENU 1) Area of a circle 2) Circumference of a circle 3) Area of a rectangle 4) Perimeter of a rectangle 5) Quit Enter your choice: 1 Enter the circle's radius: 2.5 The area is 19.6349540849 MENU 1) Area of a circle 2) Circumference of a circle 3) Area of a rectangle 4) Perimeter of a rectangle 5) Quit Enter your choice: 2 Enter the circle's radius: 2.5 The circumference is 15.7079632679 MENU 1) Area of a circle 2) Circumference of a circle 3) Area of a rectangle 4) Perimeter of a rectangle 5) Quit Enter your choice: 3 Enter the rectangle's width: 4 Enter the rectangle's length: 5 The area is 20.0 MENU 1) Area of a circle 2) Circumference of a circle 3) Area of a rectangle 4) Perimeter of a rectangle 5) Quit Enter your choice: 4 Enter the rectangle's width: 4 Enter the rectangle's length: 5 The perimeter is 18.0 MENU 1) Area of a circle 2) Circumference of a circle 3) Area of a rectangle 4) Perimeter of a rectangle 5) Quit Enter your choice: 5 Exiting the program... Ln: 18 Col: 27 Ln: 1 Cor: 4

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!