How to print the cube symbol in Python

1 Answer

0 votes
area = 1237.8491
decimals = 3

print("{0:.{1}f}cm\u00b3".format(area, decimals))




'''
run:

1237.849cm³

'''

 



answered Sep 3, 2021 by avibootz

Related questions

1 answer 538 views
1 answer 282 views
1 answer 280 views
2 answers 329 views
1 answer 215 views
1 answer 242 views
...