So I have a pprogram, and everything is ok except that the lists should be printed without the square brackets included.
so my program asks people what shape they are interested in, then asks them what lengths they want each side of the shapes, then it calculates the volume of each of the three shapes. I have a def function for lengths of different shapes, which inputs them into a list, so for example:
This is an example of what it looks like:
I have them in a list like
cubeVolumes = 
volume1 = int(length) ** 3
print(*cubeVolumes, sep=', ')
This is the same as passing the elements of the list into print as arguments.
sep is the seperator character
print(54, 32, 12, sep=', ')
To do it with some other text:
print("Cube Volumes: ", end='') #No line break after this print print(*cubeVolumes, sep=', ')
Cube Volumes: 54, 32, 12