CSC165 Fall 2014 SLOG
Saturday, September 27, 2014
Third Week: More on the Folding Problem (Coding)
So, now that we know the pattern, we can use recursion in Python to get the results. Below is the code that can be used to generate that pattern, given the number of folds:
And here is the result of running the code in the Python Shell:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment