I want to do something like String.Format(\"[{0}, {1}, {2}]\", 1, 2, 3) which returns:
String.Format(\"[{0}, {1}, {2}]\", 1, 2, 3)
[1, 2, 3]
How do I do this in Python?>
You haven't formulated yourself very commendably, but I'll venture a guess this is what you're looking for:
foo = "Hello" bar = "world" baz = 2 print "%s, %s number %d" % (foo, bar, baz)