colon method not defined for pyobject class when using py.len() in for loop
a = py.list({1,2,3,4})
for i=1:py.len(a)
disp(i)
endfor
error: colon method not defined for pyobject class
py.len(a) return [python object of type int] which is not working with the colon operator.
Edited by Vishnu Parammal