Python Forum
Invalid syntax: string index out of range
Thread Rating:
  • 2 Vote(s) - 1.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Invalid syntax: string index out of range
#3
I have read the rules, sorry the caps was to make my text  stand out, I did not realise  that the code  and text is separated, my bad, I know now. I have supplied the code and given the error, here I'll copy and paste the full error (it was on python 3):

Traceback (most recent call last):
 File "python", line 32, in <module>
IndexError: string index out of range
Reply


Messages In This Thread
RE: Invalid syntax: string index out of range - by darkreaper1959 - Jan-15-2017, 06:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Invalid syntax Slome 2 2,064 May-13-2022, 08:31 PM
Last Post: Slome
  How to fix list index out of range longmen 26 6,437 Apr-27-2022, 05:46 PM
Last Post: deanhystad
  list index out of range OliverG 3 2,427 Sep-03-2021, 12:04 AM
Last Post: itsmycode
  List index out of range when turning CSV into dict ranbarr 15 6,808 May-12-2021, 10:38 AM
Last Post: ranbarr
  print(f"{person}:") SyntaxError: invalid syntax when running it AryaIC 11 16,748 Nov-07-2020, 10:17 AM
Last Post: snippsat
  Invalid syntax error, where? tucktuck9 2 3,493 May-03-2020, 09:40 AM
Last Post: pyzyx3qwerty
  Use range to add char. to empty string johneven 5 14,032 Mar-24-2020, 11:52 AM
Last Post: mbharatkumar
  Invalid syntax defining a dictionary? ep595 6 5,271 Nov-19-2019, 08:06 PM
Last Post: ThomasL
  Syntax Error: Invalid Syntax in a while loop sydney 1 4,156 Oct-19-2019, 01:40 AM
Last Post: jefsummers
  list index out of range mcgrim 2 2,992 May-25-2019, 07:44 PM
Last Post: mcgrim

Forum Jump:

User Panel Messages

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