I have a question for python, so I have a program that prints out the volume of a shape, I was able to make the volume to two decimal places using round(volume3, 2)) and it comes out fine. However, my program continuously asks for the user for input on lengths for the shape and then calculates the volume. So, it will say :
input length:
input length:
and then it will calulate the volume and say for example,
"your volume is: 34.22"
however, at the end when I want to print all the recorded volumes for the shape, it'll print out 54.3487847384783748 and I only want 2 decimal places!
how can I do this? this is what i have so far
print("shape: ", *shapeVolumes, end='')
print(*shape, sep=', ')
and it'll print out 54.334343434, 32.6676767, 32.4545454
but id like: 54.33, 32.66, 32.45
(example numbers)