SyntaxFix
Write A Post
Hire A Developer
Questions
Simply use size instead of len!
size
len
>>> from numpy import size >>> N = [2, 3, 5] >>> size(N) 3 >>> N = array([2, 3, 5]) >>> size(N) 3 >>> P = 5 >>> size(P) 1