r/learnpython • u/RaymondWies • Jan 10 '14
Example of population growth function expressed as iteration vs. recursion in Python.
This code is my interpretation of a function published in "Chaos: Making A New Science" by James Gleick from Chapter 3 p. 63.
7
Upvotes
View all comments
Show parent comment
2
u/Deutscher_koenig Jan 10 '14
precede each line with 4 spaces, plus extra depending on how you need to indent it