"""
Topic: Reversing Integers with Python
Author: <NAME>
Date Created: 12/29/2017

Challenge to complete:

Given a 32-bit signed integer, reverse digits of an integer.

Example:

Input: 123
Output:  321
"""


def revInts(integer, intList=None):
    ints = int(integer)

    if intList == None:
        intList = []
    while ints != 0:
        rem = ints % 10
        intList.append(rem)
        ints = ints // 10
    return intList

def main():
    pass

if __name__ == '__main__':
    main()

"""
Topic: Reversing Integers with Python
Author: <NAME>
Date Created: 12/29/2017

Challenge to complete:

Given a 32-bit signed integer, reverse digits of an integer.

Example:

Input: 123
Output:  321
"""


def revInts(integer, intList=None):
    ints = int(integer)

    if intList == None:
        intList = []
    while ints != 0:
        rem = ints % 10
        intList.append(rem)
        ints = ints // 10
    return intList

def main():
    pass

if __name__ == '__main__':
    main()

Topic: Reversing Integers with Python Author: <NAME> Date Created: 12/29/2017  Challenge to complete:  Given a 32-bit signed integer, reverse digits of an integer.  Example:  Input: 123 Output:  321