1

I am making a text based rpg in python 3 and the output window gets very cluttered cluttered. I was wondering if there was a way to clear the screen automatically from time to time.

Jonathon Reinhart
  • 124,861
  • 31
  • 240
  • 314
Andreas
  • 13
  • 4

1 Answers1

0
import os
os.system('cls')

You can use os.system('clear') if you are on linux.

Bitto Bennichan
  • 7,277
  • 1
  • 13
  • 38