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
  • 132,704
  • 33
  • 254
  • 328
Andreas
  • 13
  • 4

1 Answers1

0
import os
os.system('cls')

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

Bitto
  • 7,937
  • 1
  • 16
  • 38