Re: [Tutor] how to invert tuples, one problem more

2015-11-30 Thread Emile van Sebille
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

Re: [Tutor] how to invert tuples, one problem more

2015-11-27 Thread Alan Gauld
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

[Tutor] how to invert tuples, one problem more

2015-11-27 Thread marcus lütolf
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