"Ramkumar Kashyap" <[EMAIL PROTECTED]> wrote > print "%s %s %s" % menu_specials["breakfast"], > menu_specials["lunch"], > menu_specials["dinner"]
Whoops, I also should have added parentheses around the values. Otherwise Python sees a tuple consisting of the string and first value followed by the two succeeding values. And the single value doesn't match the 3 %s tokens. So it should be: >>> print "%s %s %s" % (menu_specials["breakfast"], >>> menu_specials["lunch"], menu_specials["dinner"]) Because of the parens you don't need the \ character so you can ignore that bit. Note to self: Test before posting! Blush, -- Alan Gauld Author of the Learn to Program web site http://www.freenetpages.co.uk/hp/alan.gauld _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor