import random
import time
badmStudentsF = ["FNAME1","FNAME2","FNAME3","FNAME4","FNAME5"]
badmStudentsM = ["MNAME1","MNAME2","MNAME3","MNAME4","MNAME5","MNAME6","MNAME7","MNAME8", "MNAME9", "MNAME10","MNAME11"]
random.shuffle(badmStudentsM, random.random);
random.shuffle(badmStudentsF, random.random);
print "HackLab Groups : " + time.strftime("%Y-%m-%d %H:%M")
print "++++++++++++++++++++++++++"
for i in range(0,len(badmStudentsM),1):
if i == 4 or i == 8 or i == 12 or i == 16 :
print "------------------------------"
for i in range(0,len(badmStudentsF),2):
if i == 4 or i == 8 or i == 12 or i == 16 :
print "------------------------------"#
print badmStudentsF[i]
print badmStudentsM[i]
print "++++++++++++++++++++++++++"
I am trying to make a script that when it runs it will make 4 groups of 4.
Each group must have atleast one female name 'FNAME' in each print out.
Thank you for the help in advance.