RosettaCodeData/Task/Character-codes/Python/character-codes-2.py

3 lines
64 B
Python
Raw Normal View History

2013-04-10 16:57:12 -07:00
print ord(u'π') # prints "960"
print unichr(960) # prints "π"