<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
vijay wrote:
<blockquote cite="mid:630560.5642.qm@web95316.mail.in2.yahoo.com"
type="cite">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td
style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;"
valign="top">Check out this code <br>
l= [1, 2, 3, 3, 4]<br>
d={}<br>
for item in l:<br>
d.setdefaut(item,0)<br>
d[item] +=1<br>
print d<br>
{1: 1, 2: 1, 3: 2, 4: 1}<br>
<br>
<br>
<div style="color: rgb(0, 0, 0); font-family: arial;"><font
size="2">with regard's</font></div>
<div style="color: rgb(0, 0, 0); font-family: arial;"><font
size="2">vijay<br>
</font></div>
<br>
</td>
</tr>
</tbody>
</table>
<br>
</blockquote>
<tt>Thanks. Very interesting concept.<br>
<br>
Ken<br>
</tt>
</body>
</html>