Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue7421] Given

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Dec 1, 2009, 12:38 PM

Post #1 of 2 (147 views)
Permalink
[issue7421] Given

New submission from Angel <AngelAssasin187 [at] hotmail>:

# 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&apos;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 <report [at] bugs>
<http://bugs.python.org/issue7421>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Dec 1, 2009, 12:47 PM

Post #2 of 2 (123 views)
Permalink
[issue7421] Given [In reply to]

Eric Smith <eric [at] trueblade> added the comment:

If you have a question to ask, this is not the proper forum. Please see
python-list http://mail.python.org/mailman/listinfo/python-list

----------
nosy: +eric.smith
resolution: -> invalid
status: open -> closed

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7421>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.