Hangman Help (azure notebooks)
#### THIS CODE WAS MADE IN AZURE NOTEBOOKS NOT SOLO LEARN #### #### IT WILL NOT WORK IN SOLOLEARN (idk why but it just doesnt, maybe the way sololearn handles inputs) So i have this problem, at line 118 in this code it always prints an error when i do this in azure notebooks titled specifically: EDIT: this portion of the code is supposed to print the # of _ for every letter and as each letter is guessed its replaced with the letter that was guessed correctly IndexError Traceback (most recent call last) <ipython-input-16-45d25eb4d71d> in <module> 116 if found == True: 117 if count == word.find(word[ltr]): --> 118 newList[ltr] = x[ltr] 119 found = False 120 else: IndexError: list assignment index out of range And i cant figure out why!! unless i need to subtract one from x[ltr] i have no idea what to do at all! here is a link to the HTML file of my code in dropbox: https://www.dropbox.com/s/z9rwp0gkn70209p/Hangman%20project%20%281%29.html?dl=0