Python Forum
I don't understand where is the error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I don't understand where is the error
#4
One observation:

- on line 8 there is list of zeros. I counted that there are 26 zeros (maybe I miscounted :-). This is very error-prone way to create such a list. One can just:

>>> [0 for i in range(26)]
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
I don't understand where is the error - by ghiso983 - Jan-28-2019, 09:49 PM
RE: I don't understand where is the error - by perfringo - Jan-29-2019, 02:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Error I don't understand finndude 2 5,143 Oct-12-2022, 02:43 PM
Last Post: finndude
  Don't understand error message Milfredo 2 2,072 Aug-24-2020, 05:00 PM
Last Post: Milfredo
Exclamation Get syntax error. Dont understand why beLIEve 21 14,744 Aug-25-2019, 02:28 PM
Last Post: ThomasL
  Syntax error for a reason I don't understand DanielCook 2 2,461 Aug-07-2019, 11:49 AM
Last Post: buran
  Error in script don't understand, please help! DanielR 0 2,056 Mar-15-2019, 12:39 PM
Last Post: DanielR
  I don't understand the error MasterGame 1 2,571 Jul-18-2018, 07:55 PM
Last Post: gontajones
  Index Error, can't understand why. Diamond 5 4,333 Jan-03-2018, 11:45 AM
Last Post: Diamond

Forum Jump:

User Panel Messages

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