Python Forum
I have an index error inline 76 but I write the program in a way that cant reach tha
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I have an index error inline 76 but I write the program in a way that cant reach tha
#2
Line 74 says elif 'marzchap':. Since there is no variable mentioned, this is equivalent to elif True:. There is no case where it will fail.

Earlier your conditionals all compare against z. I suspect you meant to do that here (and the later ones) as well.
buran and abbaszandi like this post
Reply


Messages In This Thread
RE: I have an index error inline 76 but I write the program in a way that cant reach tha - by bowlofred - Nov-13-2020, 07:33 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pyscript index error while calling input from html form pyscript_dude 2 999 May-21-2023, 08:17 AM
Last Post: snippsat
  Index error help MRsquared 1 777 May-15-2023, 03:28 PM
Last Post: buran
  Program running on RPi 3b+ Very Strange Behavior - Out of Bound Index MadMacks 26 3,354 Mar-07-2023, 09:50 PM
Last Post: MadMacks
  how to write exception error into logger mg24 3 992 Nov-15-2022, 04:20 PM
Last Post: insharazzak
  Take inline argument value SM_13 2 1,119 Jul-06-2022, 11:12 AM
Last Post: snippsat
  I'm getting a String index out of range error debian77 7 2,363 Jun-26-2022, 09:50 AM
Last Post: deanhystad
  Python Error List Index Out of Range abhi1vaishnav 3 2,326 Sep-03-2021, 08:40 PM
Last Post: abhi1vaishnav
  Index error - columns vs non-column Vinny 3 4,939 Aug-09-2021, 04:46 PM
Last Post: snippsat
  write a program which prints the day in english ben1122 10 4,019 Jul-25-2021, 05:55 PM
Last Post: ben1122
  How to resolve Index Error in my code? codify110 6 3,058 May-22-2021, 11:04 AM
Last Post: supuflounder

Forum Jump:

User Panel Messages

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