python: why it says undefined variable when I call function?

Viewed 199

enter image description here

I don't know why the function name has been considered as a variable, how should I solve this?

1 Answers

You need to call self.getlen(dataSet), since you defined the function as a member of the class.

Related