How would you convert a string to ASCII values?
For example, \"hi\" would return 104105.
I can individually do ord(\'h\') and ord(\'i\'), but it\'s going to
If you want your result concatenated, as you show in your question, you could try something like:
>>> reduce(lambda x, y: str(x)+str(y), map(ord,"hello world")) '10410110810811132119111114108100'