Result Size: 625 x 571
demo_string_placeholder23.py:
x
 
#Use "%" to convert the number into a percentage format:
txt = "You scored {:%}"
print(txt.format(0.25))
#Or, without any decimals:
txt = "You scored {:.0%}"
print(txt.format(0.25))
C:\Users\My Name>python demo_string_placeholder23.py
You scored 25.000000%
You scored 25%