new_horizon

04-18-2012, 08:17 AM

Hi All,

Forgive my ignorance, but I am writing a program where I have a set of commands that occur for a given number of trials (for in in range (0, No_trials)).

I wish to have another event that only occurs every three trials (i.e. when i is 3, 6, 9 etc) - can anyone tell me how I would express this in Python?

Many thanks

Mark

Forgive my ignorance, but I am writing a program where I have a set of commands that occur for a given number of trials (for in in range (0, No_trials)).

I wish to have another event that only occurs every three trials (i.e. when i is 3, 6, 9 etc) - can anyone tell me how I would express this in Python?

Many thanks

Mark