for book, user in zip(books, itertools.cycle(users)):
user["books"].append(
{
"title": book["Title"],
"author": book["Author"],
"pages": book["Pages"],
"genre": book["Genre"],
}
)
json.dump(users, result_json, indent=4)