Anonymous user
Character codes: Difference between revisions
→{{header|Python}}
Line 1,052:
print unichr(960) # prints "π"</lang>
{{works with|Python|3.x (and 2.x)}}
Here character is just a string of length 1
<lang python>print(ord('a')) # prints "97"
|