Hello, I’m about at my wits end and would really appreciate some help. The big picture is the player is asked a vocabulary question when the player hits a coin in order to collect the coin. I’m having trouble displaying the question, which is a mash of concatenated text and list indexes.I’m doing the bulk of this code in python, relevant code block below as well as the entire project.
I scaled it back to find the breaking point,
this segement will be displayed:
question=“HI! \n”+WordList[0][0]+“\n”+WordList[1][0]+“\n”+WordList[2]
As will this
question = “Definition of " + WordList[indice][0] + " is:\n”+"1: “+WordList[QuestionIndices[0]][1]+”\n 2: "+WordList[QuestionIndices[1]][1]
but not this, adding a third line of blank text to the previous segment causes the error
question = “Definition of " + WordList[indice][0] + " is:\n”+“1: “+WordList[QuestionIndices[0]][1]+”\n 2: “+WordList[QuestionIndices[1]][1]+”\n”
I frankly have no idea why this is happening and if anyone has som illumination I would be much obliged.
Full relevant code segment:
Full Program: