How to rerun a particular part of code?

How to rerun a particular part of code ?

Put the code in a function, then call the function at any time you want to run that code.