title: Hi. Why am I getting "NameError: name 'number' is not defined " for this code? Please help me here as I have no idea
body: <pre><code>alphabet=str(input(&quot;Enter the alphabet: &quot;))
  
  if &quot;A&quot;==1 and &quot;B&quot;==2 and &quot;C&quot;==3 and &quot;D&quot;==4 and &quot;E&quot;==5 and &quot;F&quot;==6 and &quot;G&quot;==7 and &quot;H&quot;==8 and &quot;I&quot;==9 and &quot;J&quot;==10 and &quot;K&quot;==11 and &quot;L&quot;==12 and &quot;M&quot;==13 and &quot;N&quot;==14 and &quot;O&quot;==15 and &quot;P&quot;==16 and &quot;Q&quot;==17 and &quot;R&quot;==18 and &quot;S&quot;==19 and &quot;T&quot;==20 and &quot;U&quot;==21 and &quot;V&quot;==22 and &quot;W&quot;==23 and &quot;X&quot;==24 and &quot;Y&quot;==25 and &quot;Z&quot;==26:
      number=alphabet
  
  print(&quot;The number of the alphabet is&quot;,number)
  </code></pre>