Boolean result of divmod

Gnarlodious gnarlodious at gmail.com
Mon Jun 20 20:28:00 EDT 2011


What is the easiest way to get the first number as boolean?

divmod(99.6, 30.1)

Or do I have to say:

flote, rem=divmod(99.6, 30.1)
bool(flote)

-- Gnarlie



More information about the Python-list mailing list