demo_ref_format.py:
x = format(0.5, '%') print(x)
C:\Users\My Name>python demo_format.py
50.000000%