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?>
To print elements sequentially use {} without specifying the index
print('[{},{},{}]'.format(1,2,3))
(works since python 2.7 and python 3.1)