share
Stack OverflowWrite a format string which prints out the data using based on this Python code
[-6] [0] user734290
[2011-12-02 12:46:10]
[ python string format ]
[ http://stackoverflow.com/questions/8356529] [DELETED]

I need to write a format string which prints out the data using the following syntax: Hello John Doe. Your current balance is 53.44$.

based on this code:

data = ("John", "Doe", 53.44) //I assume this is an object 
format_string = "Hello"

print format_string % data

Any suggestions to accomplish this?

(1) What's the point of this question? Is it homework? - Daniel Roseman
(5) This is phenomenally simple to do, which leads me to believe that giving you the answer would serve no useful purpose but to do your homework for you. Pay closer attention in class (or open the text book or learn to use any of the myriad of popular search engines) - KevinDTimm