how do I reset a input in python
<p>so i have this code that basically consists of you asking questions, but i have it so the input answers the question, so you can only ask one question, then you have to reset the whole thing again and again, and i have it to ask you your name first so i want a loop that ignores that.</p>

<pre><code>    print("hello,what is your name?")
name = input()
print("hello",name)

while True:
    question = input("ask me anything:")
    if question == ("what is love"):
        print("love is a emotion that makes me uneasy, i'm a inteligence not a human",name)
        break
    if question == ("i want a dog"):
        print("ask your mother, she knows what to do",name)
        break
    if question == ("what is my name"):
        print("your name is",name)
        break
</code></pre>

<p>Get rid of the <code>break</code>s, so the loop keeps prompting for new questions. For performance, change the subsequent <code>if</code> tests to <code>elif</code> tests (not strictly necessary, but it avoids rechecking the string if you get a hit early on):</p>

<pre><code>while True:
    question = input("ask me anything:")
    if question == "what is love":
        print("love is a emotion that makes me uneasy, i'm a inteligence not a human",name)
    elif question == "i want a dog":
        print("ask your mother, she knows what to do",name)
    elif question == "what is my name":
        print("your name is",name)
</code></pre>

<p>Of course, in this specific case, you could avoid the repeated tests by using a <code>dict</code> to perform a lookup, making an arbitrary number of prompts possible without repeated tests:</p>

<pre><code># Defined once up front
question_map = {
        'what is love': "love is a emotion that makes me uneasy, i'm a inteligence not a human",
        'i want a dog': 'ask your mother, she knows what to do',
        'what is my name': 'your name is',
        # Put as many more mappings as you want, code below doesn't change
        # and performance remains similar even for a million+ mappings
    }

print("hello,what is your name?")
name = input()
print("hello",name)

while True:
    question = input("ask me anything:")
    try:
        print(question_map[question], name)
    except KeyError:
        # Or check for "quit"/break the loop/alert to unrecognized question/etc.
        pass
</code></pre>

python