educative.io

Code is not working

Though I have typed the exact same code that is shown in the Solution, it is not working. May I know where I went wrong?

Hi Vikas,

Please try the for loop with “i<5” instead of “i<20” as suggested in the solution. Meanwhile we will look into why this is not working for 20 turns.