import os os.system("clear && printf 'e[3J'")#if your machine is using on windonw you need to replace clear && printf 'e[3J' to cls