Play it Sam


when i run this code , the code does not gives any output and it keeps running for long time. Can you please advise what causes this.
Checked this code in jupyter notebook and it ran successfully without any issues.


The only thing off I see is that you have 4-space indents after line 27 (instead of 2 spaces), and lines 31 on aren’t indented correctly (they should be indented under the for command)


Exactly. The for statement is an indefinite loop in its present form. The turn changes but nothing else happens.


Thanks @mtf @rasmodeus


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