[Tutor] making a table
Goofball223@wmconnect.com
Goofball223 at wmconnect.com
Fri Sep 9 01:34:36 CEST 2005
I would like to construct a table for my program but it does not seem to be
coming out evenly. Could someone please let me know what to do so that
everything will work out correctly?
def main():
print "This program shows a table of Celsius temperatures and there
Fahrenheit equivalents every 10 degrees from 0C to 100C"
print "C F"
for i in(0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100):
fahrenheit = (9.0/5.0) * i + 32
print i
print " ",
print fahrenheit
main()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20050908/720b1f83/attachment.html
More information about the Tutor
mailing list