On Sun, Mar 6, 2011 at 10:46 PM, nookasree ponamala <[email protected]>wrote:
> Thanks for the reply Wayne, but still it is not working, > > when I used int It throws the below error: > File "<stdin>", line 2, in <module> > File "<stdin>", line 3, in summary > File "<stdin>", line 3, in <genexpr> > ValueError: invalid literal for int() with base 10: "'" > 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. HTH, Wayne
_______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
