Two stimuli lists

I have an experiment with two stimuli lists, the lists are coded into a column called “version” in one single csv file. I would like the experimenter to chose whether the participant does the “A” or the “B” list. How can I do this in PsychoPy?

Sort the spreadsheet by version.

Add group to the starting dialogue box with options ['A','B']

Then add code along the lines of:

useRows = ''
if expInfo['group'] == 'A':
     useRows = 0:40
elif expInfo['group'] == 'B':
     useRows = 40:80