I am getting doubt in my code

in entropy(col)
6 for ix in counts[1]:
7 p=ix/N
----> 8 ent += (-1plog2§)
9 return ent

NameError: name ‘log2’ is not defined
I am getting this error i even imported math even then it’s not working