Python 2.7.6 help with modules

Chris Angelico rosuav at gmail.com
Sat Feb 8 00:58:05 EST 2014


On Sat, Feb 8, 2014 at 4:55 PM, Scott W Dunning <swdunning at cox.net> wrote:
> On Feb 7, 2014, at 10:10 PM, Chris Angelico <rosuav at gmail.com> wrote:
>
>
> You should be able to get this to the point of writing out five
> separate values, which are the original five digits. Each one is worth
> 10 of the previous value. At every step, do both halves of the
> division.
>
>
> What do you mean by at each step do both halves of the division?
>

Taking the quotient (with the / operator) and the remainder (with %).
You'll find it's clearer to start by doing distinct, separate
operations, where each one is both division and modulo.

ChrisA



More information about the Python-list mailing list