Why Python don't accept 03 as a number?

jfong at ms4.hinet.net jfong at ms4.hinet.net
Fri Dec 7 23:24:45 EST 2018


Ian at 2018/12/8 UTC+8 AM11:28:34 wrote:
> What is it exactly that you're trying to accomplish with this? Perhaps
> there's a better way than using eval.

This problem comes from solving a word puzzle,
    ab + aa + cd == ce
Each character will be translate to a digit and evaluate the correctness,
    03 + 00 + 15 == 18




More information about the Python-list mailing list