Please do not send the entire digest when replying rto a single
email. Use your editor to remove the redundant material.
--------------------
"saurabh agrawal" <imsam...@yahoo.co.in> wrote
You can use method name count in list also for getting the repeats.
#!/usr/bin/python
li=[1,2,3,1,4,5,7,3,4,1]
for i in range(len(li)):
print li[i], li.count(li[i])
cheers,
Saurabh
--- On Fri, 11/6/10, tutor-requ...@python.org
<tutor-requ...@python.org> wrote:
From: tutor-requ...@python.org <tutor-requ...@python.org>
Subject: Tutor Digest, Vol 76, Issue 31
To: tutor@python.org
Date: Friday, 11 June, 2010, 8:19 PM
...
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor