Skip to content
Sign upLog in

How to clear the console in python

Profile icon

I'm trying to make a console based game in python, but I want to clear the text that has accumulated in the console. Is there a certain command for this or will I just have to live with it?

You are viewing a single comment. View All
Answered by Coder100 [earned 5 cycles]
View Answer
Profile icon

technically it should work no matter what, in the backend, in C:

int main() { system("clear"); }

which works on all windows and linux