title: How can I tell if a certain key was pressed in Python?
body: <pre><code>import sys
  
  print (sys.platform)
  print (2 ** 100)
  input('press Enter to exit')
  </code></pre>
  
  <p>Suppose I wanted to use the number 1 as the button that must be pressed to exit. How would I go about doing this?</p>