Python Forum
Why isnt this word length selector working
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why isnt this word length selector working
#3
(Mar-25-2017, 10:08 PM)sparkz_alot Wrote: Please post the entire Traceback error.

This is the TraceBack error :
Error:
Traceback (most recent call last):   File "C:\Users\Gaming\Desktop\Hangman Extended.py", line 154, in <module>     WordLength = wordLength(randomWord,words)   File "C:\Users\Gaming\Desktop\Hangman Extended.py", line 79, in wordLength     if len(word[index]) >= 5: IndexError: string index out of range
Also When you run the program it will ask you to select a Tier Please Enter 1 not 2

Moderator Larz60+: Changed traceback display to error block
Reply


Messages In This Thread
RE: Why isnt this word length selector working - by Ivan - Mar-26-2017, 01:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Excel isnt working properly after python function is started IchNar 2 323 May-01-2024, 06:43 PM
Last Post: IchNar
  Working with Excel and Word, Several Questions Regarding Find and Replace Brandon_Pickert 4 1,620 Feb-11-2023, 03:59 PM
Last Post: Brandon_Pickert
Question Problem: Check if a list contains a word and then continue with the next word Mangono 2 2,558 Aug-12-2021, 04:25 PM
Last Post: palladium
  Looping if condition isnt met finndude 6 3,027 May-03-2021, 08:01 PM
Last Post: Skaperen
  Python Speech recognition, word by word AceScottie 6 16,098 Apr-12-2020, 09:50 AM
Last Post: vinayakdhage
  print a word after specific word search evilcode1 8 4,930 Oct-22-2019, 08:08 AM
Last Post: newbieAuggie2019
  for some reason this isnt working lokchi2017 3 2,727 Aug-06-2018, 12:24 PM
Last Post: perfringo
  average word length syn09001 6 12,582 Jul-18-2018, 08:26 PM
Last Post: micseydel
  difference between word: and word[:] in for loop zowhair 2 3,711 Mar-03-2018, 07:24 AM
Last Post: zowhair
  ISO working example of opening a Microsoft Word document through PyWin32 Orthoducks 1 4,629 Dec-25-2016, 10:12 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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