code: def rand_ascii_str(length):
      
      letters = [random.choice(ascii_letters_and_digits) for _ in range(length)]
      return ''.join(letters)
docs: Generates a random string of specified length, composed of ascii letters
      and digits.
  
      Args:
          length: The number of characters in the string.
  
      Returns:
          The random string generated.