Quote:
Originally Posted by Shoe Lace
I came across 2 problems with my code:
1. Using a global was a bad idea.
2. I had a hand.copy() issue when I thought it wasn't a problem.
#2 by itself didn't fix it. #1 was needed too. It submitted on 27/30.
Using a global was a bad idea...
fwiw, the MIT flavor of teaching this course is functional-centric. Try to eschew globals, mutation, show deference to functions, etc to keep your hair from falling out.
I have to go finish this PS now.
EDIT TO ADD: Eric Grisham, the professor, taught SICP for many years and hates Python. See the original lectures on youtube for further reference.
Last edited by daveT; 10-26-2012 at 03:54 PM.