input: Write a function to take a list of phrases and generate a string concatenating each phrase with its length in the format 'phrase (length)'. If the list is empty, return an empty string.
  assert phraselengths(["A bird in the hand", "is worth two in the bush"]) == "A bird in the hand (17)is worth two in the bush (25)"
  assert phraselengths([]) == ""
output: def phraselengths(phrases):
      if not phrases:
          return ""
      return "".join(f"{phrase} ({len(phrase)})" for phrase in phrases)