Tutorials covering iteration, lists and debugging?



Did your example  come from some published tutorial?
As you have been told already, it has an error in %PI vs %pi, but
it is idiomatically bad in at least 2 major ways. Constructing a list
by appending to its end, and prematurely using approximate
numbers.
RJF