def run_simulation(session, users):
 for (n, user) in enumerate(users):
  if (((n % 100) == 0) and (n != 0)):
   print 'Simulated data for {} users'.format(n)
  simulate_user_history(session, user)
 print 'COMPLETE: Simulated data for {} users'.format(len(users))

def run_simulation ( session , users ) : for ( n , user ) in enumerate ( users ) : if ( ( ( n % 100 ) == 0 ) and ( n != 0 ) ) : print 'Simulated data for {} users' . format ( n ) simulate_user_history ( session , user ) print 'COMPLETE: Simulated data for {} users' . format ( len ( users ) )
simulates app activity for all users .