b = []

 b=b.append(a[i]) for i in range(len(a)) if a[i] != b[-1]

showed me:
SyntaxError: invalid syntax
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to