<div class="gmail_quote">On Sun, Mar 6, 2011 at 10:46 PM, nookasree ponamala <span dir="ltr"><<a href="mailto:nookasree@yahoo.com">nookasree@yahoo.com</a>></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 "<stdin>", line 2, in <module><br> File "<stdin>", line 3, in summary<br></div> File "<stdin>", line 3, in <genexpr><br>ValueError: invalid literal for int() with base 10: "'"</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'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>