Home

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

previous
next

Re: assignment operator
Re: Car-ac-systems
Re: Would Anonymous Functions Help in Learning Programming/Python?
Re: Python Problem
Re: Question about proprietary software development using GNU C++
Nasze Dzieci
Mam Marzenie
Niechciane i Zapomniane
Fundacja Iskierka
Krwinka