Python Compiler : Python

#Use "%" to convert the number into a percentage format: text = "You scored {:%}" print(text.format(0.30)) #Or, without any decimals: text = "You scored {:.0%}" print(text.format(0.30))