title: Difference between function and generator?
body: <p>I reviewed the question <a href="https://stackoverflow.com/questions/29864146/difference-between-function-and-generator">https://stackoverflow.com/questions/29864146/difference-between-function-and-generator</a> but it is marked as duplicate. So I am posting my version of the answer here.</p>
  
  <p>The original question was:</p>
  
  <p>I am looking for the exact difference between normal functions and generators. I have already googled it. But all the results are quite confusing. I am a beginner, so I am expecting some short and precise example.</p>
  
  <p>I tried this <a href="https://stackoverflow.com/questions/22214490/what-is-the-difference-between-normal-function-and-generator-function">What is the difference between normal function and generator function?</a> but no use.</p>
  
  <p>I have gone through this <a href="https://stackoverflow.com/questions/231767/what-does-the-yield-keyword-do-in-python">What does the &quot;yield&quot; keyword do?</a> but it's purely talking about generators, there is nothing about the difference between functions and generators. I need some help?</p>