title: Python Yes/No User Input
body: <p>I am trying to create a user input for writing to a file the current code works but i have to write my answer with ' ' around them is there anyway i can just write yes or Y without having to include ' '</p>
  
  <pre><code>Join = input('Would you like to write to text file?\n')
  if Join in ['yes', 'Yes']:
      for key, value in ip_attacks.iteritems(): #for key(the IPAddress) and value(the occurrence of each IPAddress) in ip_attacks 
          if value &gt; 30: #if the value (number of occurrences) is over 30  
              myTxtFile.write('\n{}\n'.format(key)) #then we want to write the key(the IPAdress) which has been attack more than 30 times to the text file
  else:
      print ("No Answer Given")
  </code></pre>