Previous Up Next

2.4.5  ASCII code of a string : asc

asc takes as argument a string s. asc returns the list of the ASCII codes of the characters of s.
Input :

asc("abcd")

Output :

[97,98,99,100]

Input :

asc("a")

Output :

[97]

Previous Up Next