title: How to input a word
body: <p>(I am using Python 3)</p>
  
  <p>I want to create a program in which depending on the word (not a string) I wrote, different results are shown.</p>
  
  <p>For example, I have two documents (beer.txt and wine.txt). I do not know how to make a way in which if I input beer, the content of beer.txt will appear and if I write wine...</p>
  
  <pre><code>  x = int(input("Please enter an integer: "))
  if x = beer:
      f = open ('beer.txt', 'r')
      message = f.read()
      print (message)
      f.close()
  elif x = wine:
      f = open ('wine.txt', 'r')
      message = f.read()
      print (message)
      f.close()
  </code></pre>
  
  <p>Obviously, this is so wrong and does not work. I have tried also:</p>
  
  <pre><code>while True:
      if imput("Product? ") == "beer":
          f = open ('beer.txt', 'r')
          message = f.read()
          print (message)
          f.close()
  </code></pre>
  
  <p>But nothing seems to work.</p>
  
  <p>Help me, please</p>