sentance containg the string or symbol ?
Peter Otten
__peter__ at web.de
Thu Aug 23 07:34:38 EDT 2007
yadin wrote:
> how can i print a sentance containg the string or symbol ? in python
> and also lambda?
The most robust way is to use unicode strings:
>>> print u"? and also \N{GREEK CAPITAL LETTER LAMDA}"
? and also ?
If you use literals like the omega above you also have to specify the
encoding of your script in the first or second line, typically
# -*- coding: utf-8 -*-
Only 8-bit encodings are allowed.
Peter
More information about the Python-list
mailing list