You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Print out the menu:
print "Please select a shape:"
print "1 Rectangle"
print "2 Circle"
# Get the user's choice:shape=input ("> ")
# Calculate the area:ifshape==1:
height=input ("Please enter the height: ")
width=input ("Please enter the width: ")
area=height*widthprint"The area is", areaelse:
radius=input ("Please enter the radius: ")
area=3.14* (radius**2)
print"The area is", area
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: