Re: sentance containg the string or symbol Ω

Bart Ogryczak B.Ogryczak at gmail.com
Thu Aug 23 08:35:11 EDT 2007


On 23 ago, 13:20, yadin <conra2... at yahoo.com> wrote:
> how can i print a sentance containg the string or symbol Ω in python
> and also lambda?

Well, you can use this dictionary to find out its unicode code point:
from htmlentitydefs import name2codepoint
unichr(name2codepoint['Omega'])
u'\u03a9'
unichr(name2codepoint['Lambda'])
u'\u039b'

print u'this is upper case omega: \u03a9, and this is upper case
lambda: \u039b'

See http://www.digitalmediaminute.com/reference/entity/ for entity
names.




More information about the Python-list mailing list