Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Date Created: 21/04/2015
- # Author: Kyle Minto
- # Random Teams
- import random;
- print("********************");
- print("Random Team Selector");
- print("********************\n");
- teamCount = input("Enter a number of teams: ");
- teamNames = [];
- print("\n");
- for i in range(0, teamCount):
- a = raw_input("Enter team name for team #" + str(i + 1) + ": ");
- teamNames.insert(i, a);
- print("\n");
- for i in range(0, (teamCount / 2)):
- a = random.choice(teamNames);
- teamNames.remove(a);
- b = random.choice(teamNames);
- teamNames.remove(b);
- print(a + " v " + b);
Advertisement
Add Comment
Please, Sign In to add comment