View Single Post
  #1  
Old 04-18-2012, 08:17 AM
new_horizon new_horizon is offline
Member
 
Join Date: Apr 2010
Posts: 43
Simple Programming Question

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
Reply With Quote