Skip to content
How do you clear text you print in python
Profile icon
nahu1

How do you do that Pls help

You are viewing a single comment. View All
Profile icon
RYANTADIPARTHI

Solution

there are 2 ways to do this. you can use the os module for this, or the replit module.

  • os
import os os.system('clear')

or

  • replit
from replit import clear clear()

like that.
That should work