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 536 views
1 answer 277 views
1 answer 278 views
2 answers 325 views
1 answer 211 views
1 answer 240 views
...