Challenge: Generate a List of Questions and Possible Answers

Write a function to generate a list that contains questions from a list and its four possible answers from another list.

Suppose there are two lists—one contains questions and the other contains lists of four possible answers for each question. Write a code inside a function to generate a list that contains lists of questions and their four possible answers:

  • Input: Two lists—qlist contains questions, and alist contains lists of four possible answers for each question.
  • Output: A list that contains lists of questions and their four possible answers.

Get hands-on with 1400+ tech skills courses.