# d, f, b and h are types # integer print(format(12, "d")) # float arguments print(format(123.4567898, "f")) # binary format print(format(12, "b")) # hexadecimal format print(format(12, "x"))