By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,035 Members | 1,995 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,035 IT Pros & Developers. It's quick & easy.

A little confuse

P: n/a
When I run this code in the pdb it works.
accountNbr = 1
for testLine in ftest.readlines():
acct = testLine[1:2] #there account number
if accountNbr == int(acct):
accountNbr = accountNbr + 1

When I run without the debugger I get this error.

File "./", line 62, in process
if accountNbr == int(acct):
ValueError: invalid literal for int(): "

Can someone explain?

Nov 19 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.