Re:How many legs do ten elephants have, if two of them are l...
by karateka on Monday December 25, 2023 @09:58PM
(#38768576)
It’s kind of funny that they can more reliably spit out code that will give an answer than actually output the answer as text. I guess it’s a workaround that works well for many cases
[ Parent
| on HN ]
Re:How many legs do ten elephants have, if two of them are l...
by bmicraft on Tuesday December 26, 2023 @06:37AM
(#38770887)
Humans can also more reliably use a calculator (which is basically what python is) for big numbers than doing it in their heads. I think it makes sense.
This reminds me, I've had an alias for calc='python -ic "from math import *' for a long time now. It comes handy more often than you'd think.