0

I am trying to make the input function remove itself after sometime, let me give you an example...

import time
example = input("What is your name?")
time.sleep(0.5)
#And now i need this input to remove, How do i do this?
Noob
  • 37
  • 4
  • 3
    Do you mean that you want the _prompt_ ("What is your name?") to no longer be shown in your terminal? – Arya McCarthy Feb 22 '21 at 03:32
  • 2
    Does this answer your question? [Python 3 Timed Input](https://stackoverflow.com/questions/15528939/python-3-timed-input) – Zhubei Federer Feb 22 '21 at 03:37
  • Do you want the `time.sleep` call to be running *while* the program is waiting for input? Because it doesn't do that currently, it only starts *after* the input is received. – Blckknght Feb 22 '21 at 06:17
  • @AryaMcCarthy, no i want the input that i type for the WHat is your name to not be shown in the terminal after 0.5 seconds – Noob Feb 23 '21 at 02:22
  • sorry @Zubhei Federer I dont think you understood my question, I want it to make the input dissapear from the terminal after 0.5 seconds, both the input i type for the `("What is your name?")` and the question – Noob Feb 23 '21 at 02:25
  • @Noob Being clearer about that will get you better answers—there's no _function_ that's being removed here. – Arya McCarthy Feb 23 '21 at 02:25
  • @AryaMcCarthy , what I mean is I want the question `("What is your name")` and the user input i type in to be deleted after 0.5 seconds. Also sorry for my unclear question. – Noob Feb 23 '21 at 03:14

0 Answers0