I do not need char in this example, but I include it to get my desired results.
char
charlist = [strval[0:count+1] for count, char in enumerate(strval)]
How do I get the same result without using enumerate?
xrange(len(strval))