Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
clrscr = CLeaR SCReen. You usually only want to do that at the beginning of a program. It can be useful to use it in the middle of a program however. For example, let's say that you want to code a game of checkers (or any game where you want to output the current state of the game). After each move, you may want to clear the screen before showing the new board.
16th Oct 2016, 11:03 AM
Zen
Zen - avatar