wierd_format = '[%20he]' print wierd_format % 2.5 bad_format = '[%20qe]' print bad_format % 2.5
Standard input is empty
[ 2.500000e+00]
Traceback (most recent call last):
File "prog.py", line 5, in <module>
print bad_format % 2.5
ValueError: unsupported format character 'q' (0x71) at index 4