Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # itertools_combinations.py
- from itertools import combinations
- teams = ["Hawks", "Wolves", "Tigers", "Sharks", "Broncos"]
- for game in combinations(teams, 2):
- print game
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement