Implement draw_shape #18

Closed
opened 2026-10-07 18:02:01 +02:00 by Tirsvad · 0 comments
Owner

Implement draw_shape(pen, num_sides, side_length): the turn angle is 360 divided by the number of sides, repeated for each side with a for loop. Fewer than 3 sides raises ValueError.

Phase: MIL-003

Implement `draw_shape(pen, num_sides, side_length)`: the turn angle is 360 divided by the number of sides, repeated for each side with a `for` loop. Fewer than 3 sides raises `ValueError`. Phase: MIL-003
Tirsvad added this to the Milestone 003: Shapes and Random Color milestone 2026-10-07 18:02:01 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Tirsvad-Udemy-100-days-of-code/018-turtle#18