I am on 4. Lists and Functions and I am hitting run and it is not working. I am not sure what I am doing wrong. I’m not even getting an error message in the console. I’m just getting an error message above the Run button. Any help would be appreciated. Here is the picture of my code, the directions, and the error I’m getting:


Make sure the indentation on the return line puts it outside of the loop.


There shouldn’t be any error messages in the console when your program runs successfully. However, the result is wrong, and the error message that you DO get says in what way. With that information you can start considering why your code gets that result instead of the right one.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.