How can you clear the console
I want to clear my console but I don't know how.
For example, I want to print something, make a delay, clear all of that, then print something new
Heres what the code my look like:
import time
print("Hey!")
time.sleep(1)
{The clear thing}
print("How are you?")
Method 1:
Method 2:
@Geocube101 Thanks! I already tried the imort os os.system('clear') but that didn't work. The first method did!
@Lightcaster5 use this:
then you can use clear() to clear.
@Geocube101
I tried both methods. None worked.
@SuperKidCo Are you using windows?
if so, then you can use:
If you're on repl.it and it still won't work then this could be a bug or problem with your repl
@Geocube101 this is correct:import replit
replit.clear()
@Geocube101 How do you do that in HTML?
@install you're trying to clear the javascript console?
If so there is a
console.clear()
function that clears the JS console@Geocube101 think he wants to clear just the HTML console, not JS