Hangman
hey guys, i wrote this, but there is a mistake, when you guess a right letter. it says: 'IndexError: list assignment out of range' word = ['c','o','c','o','n','u','t'] length = len(word) hidden = ['_ '*length] number = int(0) mistakes = ['-'] print (hidden) while number<=10: letter = str(input('Enter a letter: ')) if letter in word: i = 0 while i < length: # indexError: list assignment index out of range if letter is word[i]: hidden[i] = letter i = i+1 else: i = i+1 print(hidden) else: number = number+1 print ('This letter is not in here...') print (mistakes*number) print (hidden) print ('You failed!') can you help me?