[Tutor] program?
Jacques
xxjac88xx at comcast.net
Sat Dec 6 17:27:55 EST 2003
I dont know if you would call this a program. Please let me know if it
qualifies to be a program. I just started with python and started
programming. So, please bare with me.
>>> # Perimeter of a rectangle equals sum of width times two, plus sum
of lenth times 2.
>>> width = 8 #inches
>>> length = 1 #foot
>>> (width * 2) + (length * 2)
18
>>> # answer is incorrect, because inches and feet are not same unit.
How would I be able to fix that?
More information about the Tutor
mailing list