input: Write a function to generate a string by taking in a list of phrases and appending each phrase followed by its length. If the input list is empty, return an empty string.
  assert phrases_with_lengths(["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 phrases_with_lengths(["Hello", "World"]) == "Hello (5) World (5)"
  assert phrases_with_lengths([]) == ""
output: def phrases_with_lengths(phrases):
      if not phrases:
          return ""
      return " ".join([f"{phrase} ({len(phrase)})" for phrase in phrases])