Round

Ravi Teja webraviteja at gmail.com
Sun Apr 9 08:23:26 EDT 2006


No! That is NOT correct Python. For one thing, you do not declare the
types in dynamically typed languages. Secondly, if you want floating
point division, you need to enter atleast one of the numbers as float.

For example
10.0/6
or
10./6
or
float(10)/6

You will find the following helpful.
http://www.ibiblio.org/obp/thinkCSpy/




More information about the Python-list mailing list