def rword(length=5):
 s = ''
 for i in range(length):
  if ((i % 2) == 0):
   t = _consonants
  else:
   t = _vowels
  s += random.choice(t)
 return s

def rword ( length = 5 ) : s = '' for i in range ( length ) : if ( ( i % 2 ) == 0 ) : t = _consonants else : t = _vowels s += random . choice ( t ) return s
generate a random word-like string .