Hi,

This is my first post to the list, so tell me if I'm posting incorrectly.

I'm creating a script, http://python.codepad.org/mHyqbJ2z that gives the area 
of two circles, based on their radius, and displays the difference between the 
two results.

My problem is when the results are printed, I get this:

Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on 
win32
IDLE 2.6.4      ==== No Subprocess ====
>>> 
('Variable 2,', 490.0, 'is greater than', 'Variable 2,', 8.0, '.')
>>> 
('Variable 2,', 490.0, 'is greater than', 'Variable 2,', 8.0, '.')
>>> 
..
The parentheses, as well as the apostrophes and commas. I'm sure it's the way 
I'm having the results printed after it's through, but not sure how to correct 
it. 

I tried writing the 'Variable 1' and '2', as well as the 'is greater
than' within the y, and z local variables in the def return_difference_of12, 
and got the same result as when I
listed the portions of the printed result's sentence in the non-local variables 
I have now(I'm new to Python, so I'm not sure if this would be the correct 
term).

Any help would be appreciated. Thanks in advance.


David



      
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to