List of Python format characters

List of Python format characters

Here you go, Python documentation on old string formatting. tutorial -> 7.1.1. Old String Formatting -> More information can be found in the [link] section.

Note that you should start using the new string formatting when possible.

Its the first result on Google:

See also the new format() function:

List of Python format characters

In Topic = 5.6.2. String Formatting Operations
then further down to the chart
(text above chart is The conversion types are:)

The chart lists 16 types and some following notes.

My comment: help does not include attitude which is a bonus.
The attitude post enabled me to search further and find the info.

Leave a Reply

Your email address will not be published. Required fields are marked *