On 11/27/2015 12:50 PM, marcus lütolf wrote:
dear pythonistas,
thanks for your very valuable help.
I am struggling with a simple piece of code:
x = Marcus
print '{0} {1} x'.format('a', '=')
You're almost there -
print '{0} {1} {2}'.format('a', '=', x)
Emile
which gives me
a = x instea
On 27/11/15 20:50, marcus lütolf wrote:
x = Marcus
Here you assign the variable x to the same thing
as the variable Marcus. But that should be an error
since Marcus is not defined. So I'm guessing you
actually wrote:
>>> x = 'Marcus'
[ It's always better to copy real code into messages
r
dear pythonistas,
thanks for your very valuable help.
I am struggling with a simple piece of code:
>>> x = Marcus
>>> print '{0} {1} x'.format('a', '=')
which gives me
>>> a = x instead of
>>> a = Marcus
What's wrong ?
Marcus.
---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren g