ASCII defines 128 characters whose byte values ββrange from 0 to 127 inclusive. Thus, to get a string of all ASCII characters, you can simply do
''.join([chr(i) for i in range(128)])
Only some of them can be printed, however, printable ASCII characters can be accessed in Python via
import string string.printable
gsteff May 05 '11 at 12:50 a.m. 2011-05-05 00:50
source share