title: Python - sys.stdin.readline() - library
body: <pre><code>import sys
  
  lijst_salades = {'Eiersalade' : 5.99,
                   'Paprikasalade' : 6.05,
                   'truffelsalade': 3.99
                   }
  
  input = (sys.stdin.readline())
  print(lijst_salades[input])
  </code></pre>
  
  <p>it gives me an error</p>
  
  <blockquote>
    <p>Traceback (most recent call last):   File
    "C:/some/random/dir/right/here/progr.py", line 9, in 
        print(lijst_salades[input]) KeyError: 'truffelsalade\n'</p>
  </blockquote>
  
  <p>Can someone explain what is did wrong?
  If I use <code>print(lijst_salades['Eiersalade']</code> it works fine.</p>