[Tutor] how to invert tuples, one problem more

Emile van Sebille emile at fenx.com
Mon Nov 30 17:35:29 EST 2015


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   instead of
>>>> a = Marcus




More information about the Tutor mailing list