Created
February 20, 2016 02:08
-
-
Save david-wm-sanders/501d0fe89705b80da9ac to your computer and use it in GitHub Desktop.
Single draft from the list in heroes.txt
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
#!/usr/bin/env python3 | |
import random | |
with open("heroes.txt", "r") as f: | |
heroes = f.read().splitlines() | |
draft = random.sample(heroes, 3) | |
print(*draft, sep=", ") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
heroes.txt Example: