input: Write a function to generate a string where each phrase from a given list of phrases is followed by its length. Each phrase and its length should be enclosed in parentheses and concatenated without spaces between them.
  
  def phrase_with_length(phrases):
      result = ""
      for phrase in phrases:
          result += phrase + ' (' + str(len(phrase)) + ')'
      return result
  
  assert phrase_with_length(["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_with_length(["Hello world!", "Python is cool"]) == "Hello world! (12)Python is cool (13)"
  assert phrase_with_length([""]) == " (0)"
  assert phrase_with_length(["One phrase"]) == "One phrase (10)"
output: def phrase_with_length(phrases):
      result = ""
      for phrase in phrases:
          result += f"{phrase} ({len(phrase)})"
      return result