Guest User

Untitled

a guest
Dec 9th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. def make_random_word():
  2. word = ""
  3. while len(word) < 5:
  4. word += random.choice(string.letters)
  5. return word
  6.  
  7. def make_random_word(length = 5):
  8. return "".join([random.choice(string.letters) for x in xrange(length)])
Add Comment
Please, Sign In to add comment