input: Write a python function to iterate through a list of dictionaries and print each name and age in the specified format.
  assert print_names_and_ages([{'name': 'Alice', 'age': 30}, {'name': 'Bob', 'age': 25}]) == "Name: Alice, Age: 30\nName: Bob, Age: 25\n"
  assert print_names_and_ages([{'name': 'Charlie', 'age': 40}, {'name': 'Diana', 'age': 35}]) == "Name: Charlie, Age: 40\nName: Diana, Age: 35\n"
  assert print_names_and_ages([{'name': 'Eve', 'age': 20}, {'name': 'Frank', 'age': 22}]) == "Name: Eve, Age: 20\nName: Frank, Age: 22\n"
output: def print_names_and_ages(list_of_dicts):
      result = ""
      for person in list_of_dicts:
          result += f"Name: {person['name']}, Age: {person['age']}\n"
      return result