[Tutor] about print()

2011-06-05 Thread Ryan Wu
Hi all, I am a newbie of python, and reading 'python essential reference'. Now I want to print this results 'a is %d' % a -> a is 42 > with the code a = 42 > test = "'a is %d' % a" > print( '%20s ->' % test, test) > but what I get is > 'a is %d' % a -> 'a is %d' % a > What is the

Re: [Tutor] about print()

2011-06-06 Thread Ryan Wu
Oh, I see! It's a little stupid question :) Thanks,Alan! On 6/6/11, Alan Gauld wrote: > "Ryan Wu" wrote > >> I am a newbie of python, and reading 'python essential reference'. >> >> Now I want to print this results >> 'a is %d'