Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Calling the length of a list of inequality strings result in an error

I wonder if this is a bug

sign=['>=', '<=', '=']
m1=[1 if (v=="<=" or v==">=") else 2 for v in sign]
m1

The len(m1) is defined but

y=var('y_',n=range(len(m1)))

return the error '>' not supported between instances of 'range' and 'int'