OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): 2020.1.3
Standard Standalone? (y/n) y
What are you trying to achieve?:
I try to randomize a some list positions while keeping the first and last position fixed. This is part of a false memory experiment for a research class. I’d want to present old and new items for recognition. The first item of the recognition list will be the first item of the learn list, then in random order, the second item of the learn list and four new items never presented. The last item of the recognition list is always the topic of the learn list.
What did you try to make it work?:
I tried to create a list at the begining of the experiment
index = ['1','2','3','4','5']
Then at the begining of the routine I shuffle the list, insert the first and the append the last position.
index = shuffle(index)
index.insert(0, '0')
index.append('6')
What specifically went wrong when you tried that?:
trialList.append(allConds[int(round(ii))])
TypeError: type str doesn't define __round__ method
##### Experiment ended. #####
As you can see my python is really bad. Suggestions was heartly welcome
Cheers Jens