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 difference of print(test) and print ( 'a is %d' % a )? Regards
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor