How do i loop a python script?

Asked by At

I recently got into python programming (two weeks ago) and im kind of stuck. Im making a fake bank in which you can register an account, and then log back into it. The problem im facing, is that whenever i have tried looping it, it loops the whole thing and resets all the variables. What i really want, is so that when it gets to a specific point in the code, it will go back up to another specific point and run it again.

I have already tried using the def start (): thing but i could not get it to work propperly. I also want to emphasise the fact that im really new so i just want a really basic answer.

many thanks!!!

0 Answers