def subs(input_string):
    """
    Generates a list of substrings
    """
    length = len(input_string)
    return [input_string[i:j+1] for i in xrange(length) for j in xrange(i,length)]

print subs('123454984')
692a634082cbf961f296fed10ef3417ad635dc5a
def subs(input_string):
    """
    Generates a list of substrings
    """
    length = len(input_string)
    return [input_string[i:j+1] for i in xrange(length) for j in xrange(i,length)]

print subs('123454984')