What meaning of this ""hello %s you are %s years old" % x"
rxjwg98 at gmail.com
Sun Jul 27 20:49:14 CEST 2014
I get a post on tuple, see below please, on line. It seems that something is
missing. I want to learn tuple from this example as well.
Could you explain it to me (a tuple % another tuple)?
In Python, when should you use lists and when tuples?
Sometimes you don't have a choice, for example if you have
"hello %s you are %s years old" % x
then x must be a tuple.
But if I am the one who designs the API and gets to choose the data types, then
what are the guidelines?
More information about the Python-list