How to revert a program in Python

Good day. I want to revert a program in Python, but I do not know how. Is there a built-in function in Python to do this, or will I have to do it manually?


Additional Information:

Program: Dress Test

Python version: 3.6.1

Operating system: Linux (because I am programming online).


Thank you.