A little confuse

Discussion in 'Python' started by infotechsys@pivot.net, Nov 19, 2006.

  1. Guest

    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?
     
    , Nov 19, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bruce .J Sam
    Replies:
    2
    Views:
    584
    Bruce .J Sam
    Apr 3, 2005
  2. iceColdFire
    Replies:
    3
    Views:
    4,412
    Ioannis Vranos
    May 24, 2005
  3. Replies:
    3
    Views:
    344
    Serge Paccalin
    Jul 3, 2005
  4. key9
    Replies:
    7
    Views:
    339
    Ben Pope
    Feb 28, 2006
  5. key9
    Replies:
    4
    Views:
    275
Loading...

Share This Page