You will test whether three lengths can make a triangle, and find the point where the two construction arcs cross.
Your tasks.
can_draw, return True when a triangle can be drawn with the sides a, b and c, and False otherwise.drawable to the list of the sets in sets that can be drawn, in order.third_corner, return the point where the two arcs cross. The base is ab. The arc from the left end has radius ac. The arc from the right end has radius bc. Round both numbers to decimal places.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…