Created
December 8, 2016 10:50
-
-
Save zeljic/7f8535e2b8858d48300f5dc095ed637d to your computer and use it in GitHub Desktop.
Team Builder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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