On Sat, Feb 8, 2014 at 5:27 PM, Scott W Dunning <swdunn...@cox.net> wrote:
> Ok, so it this what you’re talking about?
>
>
> number = int(raw_input(“Enter a five digit number:))
> foo = number % 10
> bar = number / 10
>
> digit = foo / 10
> rem = bar % 10
>

Close! But if you print out foo and bar, you'll see that you're naming
them backwards in the second one. The last digit is the remainder
(modulo), the rest is the quotient.

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

Reply via email to