I'm trying to convert characters in string into ascii value in Python
Like ord('a[i]') but ord expects only character not string!!
Is there any other method to solve this problem in python .
An alternative to Sven's answer:
[ord(c) for c in s]
... or the corresponding generator expression:
(ord(c) for c in s)