title: Why it shows "NameError: name 'histogram' is not defined"?
body: <p>I'm taking a course on Coursera and doing an assignment after watching a teaching video.
  <a href="https://i.stack.imgur.com/dAD4m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dAD4m.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/D1Agd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D1Agd.png" alt="enter image description here"></a></p>
  
  <p>I wanna know why it shows "NameError: name 'histogram' is not defined" after running my own code. </p>