Implement draw_spirograph(pen, size_of_gap, radius, rng): draw int(360 / size_of_gap) circles, each in a random_color RGB value, and after each circle set the heading to the current heading plus the gap. A zero or negative gap raises ValueError; the int conversion avoids the float error that range raises.
Phase: MIL-004
Implement `draw_spirograph(pen, size_of_gap, radius, rng)`: draw `int(360 / size_of_gap)` circles, each in a `random_color` RGB value, and after each circle set the heading to the current heading plus the gap. A zero or negative gap raises `ValueError`; the `int` conversion avoids the float error that `range` raises.
Phase: MIL-004
Tirsvad
added this to the Milestone 004: Random Walk and Spirograph milestone 2026-10-07 18:02:17 +02:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Implement
draw_spirograph(pen, size_of_gap, radius, rng): drawint(360 / size_of_gap)circles, each in arandom_colorRGB value, and after each circle set the heading to the current heading plus the gap. A zero or negative gap raisesValueError; theintconversion avoids the float error thatrangeraises.Phase: MIL-004