New submission from Angel <angelassasin...@hotmail.com>: # Area calculation program
print "Show Area" print "----------------------" print # 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: if shape == 1: height = input ("Please enter the height: ") width = input ("Please enter the width: ") area = height*width print "The area is", area else: radius = input ("Please enter the radius: ") area = 3.14* (radius**2) print "The area is", area ---------- components: Windows messages: 95871 nosy: Fallen severity: normal status: open title: Given versions: 3rd party _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7421> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com