def peel_digits(num):
    """
    Given a positive integer num, peel_digits returns a list filled with the digits
    eg. given 1984, peel_digits returns the list [1, 9, 8, 4]
    :param num: an integer to peel into a list of digits
    :return: A list where each element of the list is a digit from num
    """
    str_num=str(num)                # convert to string to utilize Python's strong string features
    digit_list=[]                   # create empty list

    while len(str_num) > 0:         # Notice this is slightly different than last time you saw this function
        digit_list.append(int(str_num[0]))          #Puts each digits into list
        str_num = str_num[1:]
    return digit_list