def Tukeythreegene2(genes):
 means = []
 stds = []
 for gene in genes:
  means.append(numpy.mean(gene))
  std.append(numpy.std(gene))
 stds2 = []
 for std in stds:
  stds2.append(math.pow(std, 2))
 mserrornum = (sum(stds2) * 2)
 mserrorden = (((len(genes[0]) + len(genes[1])) + len(genes[2])) - 3)
 mserror = (mserrornum / mserrorden)

def Tukeythreegene2 ( genes ) : means = [ ] stds = [ ] for gene in genes : means . append ( numpy . mean ( gene ) ) std . append ( numpy . std ( gene ) ) stds2 = [ ] for std in stds : stds2 . append ( math . pow ( std , 2 ) ) mserrornum = ( sum ( stds2 ) * 2 ) mserrorden = ( ( ( len ( genes [ 0 ] ) + len ( genes [ 1 ] ) ) + len ( genes [ 2 ] ) ) - 3 ) mserror = ( mserrornum / mserrorden )
gend is a list .