input: Write a function to generate a string by taking a list of phrases and appending each phrase followed by its length in parentheses. The function should return the resulting string.
  
  assert phrase_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 phrase_lengths([]) == ""
  assert phrase_lengths(["Python", "Programming"]) == "Python (6)Programming (11)"
  assert phrase_lengths(["Hello, World!", "Python is fun"]) == "Hello, World! (13)Python is fun (12)"
  assert phrase_lengths(["Single phrase"]) == "Single phrase (13)"
output: def phrase_lengths(phrases):
      return ''.join(f'{phrase} ({len(phrase)})' for phrase in phrases)