[Solution] [Quiz] Turtle Graphics (#104)

Paul Lutus wrote:

These two lines can be replaced with:

degrees %= 360

And the resulting method will run much faster if the degrees argument is
large.

Got it. Thanks. ( the result of a % b will be >= 0 if b > 0 ... )

David Tran wrote:

Paul Lutus wrote:

These two lines can be replaced with:

degrees %= 360

And the resulting method will run much faster if the degrees argument is
large.

Got it. Thanks. ( the result of a % b will be >= 0 if b > 0 ... )

The result will also be >= 0 if a < 0. I am adding this clarification for
other readers of the newsgroup, I am sure you understand it.

ยทยทยท

--
Paul Lutus
http://www.arachnoid.com