<In what way does your code behave incorrectly? Include ALL error messages.>
“This lesson has been recently modified to use ‘len’. Please hit reset and try again”
<What do you expect to happen instead?>
The lesson should pass with this code:
n = [3, 5, 7] def print_list(x): for i in x: print i print_list(n)
When I click “Get Code” it gives me this code which has the same error and does not pass the lesson either:
n = [3, 5, 7] def print_list(x): for i in range(0, len(x)): print x[i] print_list(n)
This makes no sense. Both answers should be accepted however neither are.