How to turn a string into a list of integers?

cl at isbd.net cl at isbd.net
Wed Sep 3 08:27:29 EDT 2014


I know I can get a list of the characters in a string by simply doing:-

    listOfCharacters = list("This is a string")

... but how do I get a list of integers?

-- 
Chris Green
·



More information about the Python-list mailing list