Skip to content

Instantly share code, notes, and snippets.

@Rassilion
Last active August 29, 2015 13:55
Show Gist options
  • Save Rassilion/8712980 to your computer and use it in GitHub Desktop.
Save Rassilion/8712980 to your computer and use it in GitHub Desktop.
a = []
numMales =5
numFemales =3
K=2
b = 0
c = []
for i in range(numMales+numFemales):
a.append("M")
for i in range(numFemales):
c.append(((K*i))%(numMales+numFemales-i))
print c
for i in c:
a[i]="F"
print a
print "".join(a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment