I am trying to build a psychological experiment for my PhD thesis. I am pretty new to python. What I am looking for is that I need to select a number from a list of numbers and then again select a number which should in one case higher than the previous one and in another case lower than the previous one.
The main list of pool of numbers is:
digit = range(0,30)
if cong = 'yes':
## select a number for a variable d1 from digit and
## select another number for a variable d2 from digit which is higher than
## d1
else:
## select a number for a variable d1 from digit and
## select another number for variable d2 which is lower than d1
I have tried solving this but I guess not that expert right now. Would be grateful if anyone could help me solve this.
PS: This is my first question so I am now much aware about the standard practice of forum participation.
Thanks Vatsal