M
M
Max Kachuriak2021-09-26 12:44:09
Python
Max Kachuriak, 2021-09-26 12:44:09

How can I make certain text be deleted in a certain amount of time?

For example
Print('hello')
Time.sleep(1)
And after that the text was deleted

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Marat Nagayev, 2021-09-26
@nagayev

use the clear function

import os
def clear():
   command=""
   if os.name == "posix":
      command = "clear"
   else:
     command="cls"
   os.system(command)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question