A little confuse

I

infotechsys

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 "./casco.py", line 62, in process
if accountNbr == int(acct):
ValueError: invalid literal for int(): "

Can someone explain?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top