title: How to delete an integer value in a variable in python
body: <p>I am currently creating a quiz program on python. After each question is selected by random.choice, I want the program to delete this question from the list so it cannot be asked twice. But the program does not delete the question number, so it can still be selected again. Here is my code: </p>
  
  <pre><code>questionNumbers = [1,2]
      questionChosen = random.choice(questionNumbers)
      if questionChosen == 1:
          del questionNumbers[questionNumbers.index(questionChosen)]
          q1 = "Who is John Von Neumann?"
          print(q1)
  </code></pre>
  
  <p>Any help will be appreciated.</p>