Skip to content

Instantly share code, notes, and snippets.

@ericdorsey
Last active March 9, 2016 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericdorsey/1728fafdbda0ceb59dbf to your computer and use it in GitHub Desktop.
Save ericdorsey/1728fafdbda0ceb59dbf to your computer and use it in GitHub Desktop.
Hodor
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