title: Pause an infinite while loop with a single keypress
body: <p>I'm new to python and i have been trying to find a simple way to pause an operating while-loop, making it possible to start it again from where it was paused. I have searched google for help and tips, but everything i find seems very complex. Is there a simple way to do this?</p>
  
  <p>I've read that you can use termios and tkinter.</p>
  
  <p>Im using ubuntu.</p>
  
  <p>Sorry for language mistakes</p>
  
  <p>Thanks! </p>