On 2021-02-20, Dan Stromberg <drsali...@gmail.com> wrote:

> Convert to a str.
> Convert to a list of ints, one for each digit
> Add 7 mod 10, for each digit in the list

I'd probably subtract 3 (mod 10), so as to more obviously match the
stated requirement.

> Convert to a list of single-character str's
> Catenate those str's back together
> Convert to a single int


-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to