Hapus teks python setelah 1 detik

print("hello")
    print("this line will be deleted in 2 Seconds")
    time.sleep(2)
    delete_last_line()
    
    #if you want time you need to import time! (Search it up)
Crowded Chamois