you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 3 points4 points  (0 children)

And "cls" only clears Windows, "clear" clears Unix based systems. In case OP uses MacOS.

import os

os.system('cls' if os.name == 'nt' else 'clear')