Skip to content
Advertisement

Why it shows “NameError: name ‘histogram’ is not defined”?

I’m taking a course on Coursera and doing an assignment after watching a teaching video. enter image description here

enter image description here

I wanna know why it shows “NameError: name ‘histogram’ is not defined” after running my own code.

Advertisement

Answer

Add histogram library in your code. please add line in the starting of the code. I should work properly.

from histograms import histograms
Advertisement