I have a list of 25 questions that I'd like to randomly select 7. The list of questions will be in an IRC client (Textual). the following is an example of what I currently have as questions and my proposed process of randomizing 7 from my list.
I'd like to make
questions=[
'Finish this poem "Roses are red Violets are ..."',
'What is your favorite food?','Stones or Beatles?',
'favorite pet?',
'favorite color?',
'favorite food?'
]
for q in xrange(3):
question = ''
while question not in questions:
# this is where I'm stuck
I would like something like.
- What is your favorite food?
- favorite pet?
- Stones or Beatles?
The end result will be 7 questions from a pool of 25.