You will count the parts of prisms and pyramids with short functions, and test a rule that every solid with flat faces obeys.
Your tasks.
prism, return the tuple (faces, edges, vertices) of a prism with an n-sided end.pyramid, return the tuple (faces, edges, vertices) of a pyramid with an n-sided base.total to the sum of the numbers of faces and vertices of a cube, minus its number of edges. A cube is a prism with .Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…