Post
Python
Posted on 24th April 2024|47 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 24th April 2024
'{:.1%}'.format(1/6.0)
Output:
‘16.66%’
STILL GOT QUERIES?