Please to inform you that the "cls" and "clear" are the codes that will clear a terminal window. From your problem description, I think you are practicing on the shell within IDLE, which won't be affected by such things. Unluckily, there is no way to clear the screen in IDLE. The most genuine thing you can do is to scroll the screen down lots of lines.
For information, kindly refer to the python tutorial.