Please do not send the entire digest when replying rto a single
email. Use your editor to remove the redundant material.
--------------------
"saurabh agrawal" <[email protected]> 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, [email protected]
<[email protected]> wrote:
From: [email protected] <[email protected]>
Subject: Tutor Digest, Vol 76, Issue 31
To: [email protected]
Date: Friday, 11 June, 2010, 8:19 PM
...
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor