Posted on 29th April 2025|48 views
How can I print a percentage value in python?
print str(float(⅙))+% which is showing 0.0% when the actual answer is 16.66% what can I do?
Posted on 29th April 2025| views
'{:.1%}'.format(1/6.0)
Output:
‘16.66%’