input: def generate_string_with_lengths(phrases: List[str]) -> str:
      """Generate a string with each phrase followed by its length.
      >>> generate_string_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)'
      >>> generate_string_with_lengths(["Hello", "World"])
      'Hello (5)World (5)'
      """
output:     result = ""
      for phrase in phrases:
          result += f"{phrase} ({len(phrase)})"
      return result