New Programmer, How do you use If and Elif and Else statements? Its giving me NameError: name 'No' is not defined
<pre><code>answer = input('Hi! Would you like to say something? (No or Yes)')

if answer == No or no:

    print('Okay then, have a good day!')

elif answer == Yes or yes:

    answertwo = input('What would you like to say?')

    print(answertwo, 'Hmmmmmm, Intresting.')
</code></pre>

<p>

<pre><code> **if answer == No or no:
NameError: name 'No' is not defined**
</code></pre>

<p>I would suggest you using <code>.lower()</code> for every input. This ensures that if some types "nO" or "YeS" it takes the lowercase equivalent. Example:</p>

<pre><code>ui = input("Type \"Hi\"").lower()
</code></pre>

<p>Next, you should really add an <code>else</code> option to your code. This is for answers you don't want them to type. This should be held in a <code>while loop</code> Example:</p>

<pre><code>while(True):
    ui = input("Type \"Hi\"").title()
    if(ui == "Hi"):
        print("Hello")
        break
    else:
        print("That isn't a choice!")
</code></pre>

python if-statement input