Python can't divide??!?!
sheepsquall at netscape.net
Sun Feb 8 02:14:25 CET 2004
Yes, python can divide... use the / operator
Kurt B. Kaiser wrote:
> John Hunter <jdhunter at ace.bsd.uchicago.edu> writes:
>>The thing that may be tripping you up is that (val) is simply the
>>value, and (val,) is a tuple containing the value as the first
>>element. As for printing a value versus a tuple of values, that's the
>>__repr__ versus __str__ distinction previous posters have referred to.
> Tim enlightened me on this issue some years ago, when I suggested a
> "solution" using sys.displayhook;
> Just try explaining this stuff to a 9 year old learning Python! It
> tends to break the expository flow....
More information about the Python-list