[Tutor] how to remove the coming duplication

lina lina.lastname at gmail.com
Thu Nov 10 08:24:41 CET 2011


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

This one seems work, but looks clumsy,

Thanks for any suggestions that helps to improve.

Best regards,


More information about the Tutor mailing list