On 2021-02-20, MRAB <pyt...@mrabarnett.plus.com> wrote: > Have a look at the 'translate' method of the 'str' class.
That's very clever, but being too clever on homework assignemnts doesn't always get a good grade. If they've just studied iteration, the modulus operator, and int/str conversions, then I'd avise using the "dumb" method. -- Grant -- https://mail.python.org/mailman/listinfo/python-list