<div class="gmail_quote">On Sun, Mar 6, 2011 at 10:46 PM, nookasree ponamala <span dir="ltr">&lt;<a href="mailto:nookasree@yahoo.com">nookasree@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit"><div>Thanks for the reply Wayne, but still it is not working,</div>
<div> </div>
<div>when I used int It throws the below error:</div>
<div><div class="im">  File &quot;&lt;stdin&gt;&quot;, line 2, in &lt;module&gt;<br>  File &quot;&lt;stdin&gt;&quot;, line 3, in summary<br></div>  File &quot;&lt;stdin&gt;&quot;, line 3, in &lt;genexpr&gt;<br>ValueError: invalid literal for int() with base 10: &quot;&#39;&quot;</div>

</td></tr></tbody></table></blockquote><div><br></div><div>It gives you a single-quote character that apparently you are trying to turn into a number. I&#39;m not exactly sure what the problem is there - you should probably unwrap your generator expression into the equivalent loop(s) and either insert some strategic print statements or use a debugger, such as the python debugger.</div>

<div><br></div><div>HTH,</div><div>Wayne</div></div>