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

I tried this in PyCharm and it said
TERM environment variable not set.