First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 12 years ago

Jason Grout gravatar image

Relevant Python doc pages are: http://docs.python.org/library/string.html#formatspec, http://docs.python.org/library/stdtypes.html#string-formatting

click to hide/show revision 2
No.2 Revision

Relevant Python doc pages are: http://docs.python.org/library/string.html#formatspec, http://docs.python.org/library/stdtypes.html#string-formatting

Update: if you're in the notebook, you can also use html.table:

html.table([[1,'boy','hi'],['mathematics','is','fun']])