Last active
March 9, 2016 02:59
-
-
Save ericdorsey/1728fafdbda0ceb59dbf to your computer and use it in GitHub Desktop.
Hodor
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 | |
def hodor(): | |
hodor_text = "Hodor" | |
rand_num_words = random.randrange(5, 9) | |
for i in range(rand_num_words): | |
if random.randrange(1, 4) == 3 and i != (rand_num_words - 1): | |
hodor_text += " hodor," | |
else: | |
hodor_text += " hodor" | |
hodor_text += "." | |
print hodor_text | |
hodor() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment