python-number-formatting three types of number formating built-in function format() string method % formatting expression Examples formatting one type to another zero padding formatting one number into different format formatting as decimal precision formatting into percentage formatting as thousand seperator