The description says: "Return the height as multiple of the ball diameter." So the exact value of diameter is not needed, you just need to tell how many ball heights is the whole pyramid.
If it helps anything, you can assume the diameter to be always 1.
The description says: "Return the height as multiple of the ball diameter." So the exact value of diameter is not needed, you just need to tell how many ball heights is the whole pyramid.
If it helps anything, you can assume the diameter to be always 1.
No, they're spheres, not cubes.
list = [*string] is the same as list = list(string)