Posted on 16th September 2024|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 16th September 2024| views
'{:.1%}'.format(1/6.0)
Output:
‘16.66%’