- A small shortcut to keep the terminal or cmd clean when running your code in Python, functional for Windows and Linux systems.
- This just uses the
os
andplatform
libraries, without the need to install other libraries, as they come by default in the most up-to-date versions of Python3.
- Just copy the code and paste the function on your project
- Call the function using
clear()
or modifying it to a name of your choice.