# MCQ screen and get the questions and answers one by one (multiple choice quiz)

**URL:** https://discourse.processing.org/t/mcq-screen-and-get-the-questions-and-answers-one-by-one-multiple-choice-quiz/26837
**Category:** Processing.py
**Tags:** homework
**Created:** [January 6, 2021, 2:16pm UTC](https://discourse.processing.org/t/mcq-screen-and-get-the-questions-and-answers-one-by-one-multiple-choice-quiz/26837 "2021-01-06T14:16:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Hamedwow](https://avatars.discourse-cdn.com/v4/letter/h/6f9a4e/32.png) [@Hamedwow](https://discourse.processing.org/u/Hamedwow)
#### Post date: [January 6, 2021, 2:16pm UTC](https://discourse.processing.org/t/mcq-screen-and-get-the-questions-and-answers-one-by-one-multiple-choice-quiz/26837/1 "2021-01-06T14:16:18Z")

</div>

Hi guys , I have made a board game and i want to get Questions and answers as MCQ’s . I have made a list but when i run my boardgame it shows all the questions and answers . i want it to show me ONE question AND answer from the list , can someone help me plz?

```auto
this is my list
pythonQuestions = [
pythonFixOne , pythonFixTwo, pythonFixThree, pythonFixFour, pythonFixFive,
pythonFillOne, pythonFillTwo, pythonFillThree, pythonFillFour, pythonFillFive,
pythonStateOne, pythonStateTwo, pythonStateThree, pythonStateFour, pythonStateFive,
pythonAnswerOne, pythonAnswerTwo, pythonAnswerThree, pythonAnswerFour, pythonAnswerFive
]

```

```auto
    if questionScreen:
        fill(255, 255, 255)
        noStroke()
        rect(1030, 25, 370, 600)
        fill(0)
        textSize(13)
        text(str(pythonQuestions), 1030, 25, 370, 600)

```

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/d/dfce93486ec1d21800349e9b52f6591d200b7ade.jpeg)

---

<div class="post-metadata">

### Author: ![tabreturn](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tabreturn/32/3697_2.png) [@tabreturn](https://discourse.processing.org/u/tabreturn)
#### Post date: [January 6, 2021, 7:50pm UTC](https://discourse.processing.org/t/mcq-screen-and-get-the-questions-and-answers-one-by-one-multiple-choice-quiz/26837/2 "2021-01-06T19:50:10Z")

</div>

Would it help to use a 2D-list? A list of lists? Something like:

```python
# this is my list
pythonQuestions = [
 [pythonFixOne, pythonFillOne, pythonStateOne, pythonAnswerOne], 
 [pythonFixTwo, pythonFillTwo, pythonStateTwo, pythonAnswerTwo], 
 ...
]

# print question 1, pythonFixOne
print(pythonQuestions[0][0])
# print question 1, pythonFillOne
print(pythonQuestions[0][1])
# print question 2, pythonFixTwo
print(pythonQuestions[1][0])

```

In `pythonQuestions[0][0]`, the first zero retrieves the first element in the list (`[pythonFixOne, pythonFillOne, pythonStateOne, pythonAnswerOne]`), and the second zero retrieves the first element in that (`pythonFixOne`).
