- Create a file named tools.py
- now wrtie the below code and save it in lib directory under *\Python\Python38-32\Lib
import os
def cls():
os.system('cls')
3. Now start python in command shell and import the file by the following code.
>> from tools import cls
>> cls() # use the command for clear the screen!