Python Forum
beginner : unexpected EOF errors
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
beginner : unexpected EOF errors
#2
first of all, don't use dict as a variable name, it's a built-in function and using it as a variable name you overwrite it.
second, when you read from file, it will read string, so l[0]!= 0 will be true ('0' != 0). Probably that is why you don't get your expected result
Reply


Messages In This Thread
beginner : unexpected EOF errors - by upasana - Mar-19-2018, 02:13 PM
RE: beginner : unexpected EOF errors - by buran - Mar-19-2018, 02:34 PM
RE: beginner : unexpected EOF errors - by upasana - Mar-19-2018, 03:20 PM
RE: beginner : unexpected EOF errors - by buran - Mar-19-2018, 04:00 PM
RE: beginner : unexpected EOF errors - by upasana - Mar-19-2018, 04:09 PM
RE: beginner : unexpected EOF errors - by buran - Mar-19-2018, 04:15 PM
RE: beginner : unexpected EOF errors - by upasana - Mar-19-2018, 04:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  getting unexpected indent errors trying to move cells up jensengt 4 1,025 Jun-28-2023, 12:05 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020