I have a list which is supposed to make it ask a question only once but it doesn't
I have a list with 20 variables that are equal to false at the beginning. When it asks the question, it sets the corresponding variable to true. If it's true, it will ask a different question. But several times, it has asked 2 of the same question.
Create a list of all the questions. For example, consider the following code below:
Then, when a question is selected, append it to a variable. Then, use a for loop and an if statement to check if the same question is used.
Hope this answer helps, and hope you can also mark this as answered!