def reverse_int(n):
    """
    Late to the party, but here's a good one.
    Integer Reverse:
    Given: Any random integer in decimal.
    Challenge: Reverse it, without using any of the obvious toString tricks, or transient conversions to a data type other than an int.
    """
    r = 0
    while n > 0:
        r = r * 10 + n % 10
        n //= 10
    return r