SyntaxFix
Write A Post
Hire A Developer
Questions
You can use a list comprehension:
>>> s = 'hi' >>> [ord(c) for c in s] [104, 105]