Steven D'Aprano schreef op 2015-08-22 09:00:
On Fri, Aug 21, 2015 at 11:29:52PM +0200, Roel Schroeven wrote:
Joel Goldstick schreef op 2015-08-21 23:22:
so:
   print -max(-A, -B)
That's what I mean, yes. I haven't tried it, but I don't see why it wouldn't work.

It won't work with anything which isn't a number:

True, I hadn't thought of that.

It didn't occur to me to think about anything else than numbers, but I went back to the original post and the instructions never mention numbers.

I need to take more care to think out of the box I'm putting myself into sometimes.


--
The saddest aspect of life right now is that science gathers knowledge
faster than society gathers wisdom.
  -- Isaac Asimov

Roel Schroeven

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to