Question: Python, A function and main def find(): abc = input(Press Enter to restart and any key to continue) main: while(abc == ): for a in
Python, A function and main def find(): abc = input("Press Enter to restart and any key to continue")
main: while(abc == ""): for a in range(4): print(box[a][b]) find() when the second loop comes in for the for loop where a should have a value of 1, how can a be set back to zero(0) when it enters the second time inside the for loop which the user press Enter to restart in the find()? When user press Enter to restart, a should be set back to zero(0). But it seems a still has a value of 1 in the second time it enter the for loop. Need a to set to zero(0) when user press Enter to restart.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
