def num_to_2_char(number):
    """
    A function which takes in a number and pads it to 2 charcters and returns
    it as a string.

    :param int number: The number as an integer.
    :returns str: The number padded to two digits as a string.
    """
    if number < 10:
        return "0" + str(number)
    else:
        return str(number)