title: Can you create an If statment where which next step the program takes is based upon the number of items in a list?
body: <p>there I am creating a rather simple quiz system and at the end of the quiz, I want all of the user's answers to be displayed on the screen and saved into a csv file. Currently, their score is saved and they are told if they got the answer right or wrong after each question.</p>
  
  <p>The questions are in a csv file and they are randomly selected based on a list with the numbers 1 to 7 in  it,this is the list that I want to use to check what answer they are on.</p>
  
  <p>What I want to do is after every question save what the question is and the answer so esentianlly.</p>
  
  <p>if there are 6 numbers in list
  then saved question as question 1
  and save answer as answer 1
  else if there a 5 numbers in the list
  then saved question as question 2
  and save answer as answer 2
  and then so on</p>
  
  <p>I know that it isn't very clear, but to be honest I am not sure how to word it, I do have code if needed, but since the question is general, I don't think it will be needed.</p>
  
  <p>Ask me any questions and thank you for your time.</p>