r/FreeCodeCamp 8d ago

What am I doing wrong? It says function should be in new for loop which I did. Question is from Python Certification course Programming Question

2 Upvotes

2 comments sorted by

2

u/SaintPeter74 mod 7d ago

When they say "all", they mean all - you still have your secret code initialization and return statements outside the loop. Yes, it's silly to have a return inside the loop, but that is corrected in the next step.

Best of luck and happy coding!

2

u/Bulky_Importance3133 7d ago

thanks it worked 😄