Skip to content

Instantly share code, notes, and snippets.

@zeljic
Created December 8, 2016 10:50
Show Gist options
  • Save zeljic/7f8535e2b8858d48300f5dc095ed637d to your computer and use it in GitHub Desktop.
Save zeljic/7f8535e2b8858d48300f5dc095ed637d to your computer and use it in GitHub Desktop.
Team Builder
import random
import sys
def main(names):
random.shuffle(names)
print '\033[93m' + 'Team 1: ' + ', '.join(names[:(len(names) / 2)]) + '\n\033[92mTeam 2: ' + ', '.join(names[(len(names) / 2):]) + '\033[0m'
if __name__ == '__main__':
main(sys.argv[1:])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment