def option6(current_person):
    """The number of children and grandchildren of a person can be printed
    using this function.

    Parameters:
      current_person:
        The current Person object.

    Returns:
      The original Person object for whom the function was called.
    """
    print(f"Number of children: {len(current_person.get_children())}")
    grandchild = 0
    temp = current_person
    for child in current_person.get_children():
        current_person = child
        grandchild += len(current_person.get_children())

    print(f"Number of grandchildren: {grandchild}")
    print()

    return temp