if l1[x:x+Integer(1)]==l2[x:x+Integer(1)];   <== should be colon, not 
semicolon

Why not be more Pythonic?

l3 = [ x for x,y in zip(l1,l2) if x==y ]


-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to