Restart function in python

I am trying to make a restart function, so that when you have the answer of the function you can choose to get a new answer with new numbers or just close it. i tried with def main() and then in the …

restart a CountDownTimer

With android studio I’ve an app with a CountDownTimer. It starts from 10 seconds to 0 when I press a button and a TextView that count how many clicks i do on a button,so far so good. I want to restart …