Great points, both of you! If you’re looking to have more control over decimal places, you could also use round() with basic string concatenation. It’s another simple method I use often:
value = 1/3
print(str(round(value * 100)) + "%")
Here, we round the value to the nearest integer and then convert it to a string, appending the % sign. It’s great when you want to avoid any formatting syntax and keep it simple. This approach still fits perfectly with the idea of handling a python format percentage!