AbdullahCoding In Python Typeerror: ‘numpy.ndarray’ Unhashable Type: The shape of your variable energy is probably wrong: >>> from…