suppose i've defined three clubs in Prolog:
club(football, [john, mary, peter, jane]).
club(basketball, [peter, jane, tom, kim]).
club(dance, [emily, andrew, john, jacob]).
now i wish to find the complement of football club from the combined three clubs (i.e answer should display [tom, kim,emily, andrew, jacob]
)
please write a code in prolog to perform the above task.
i tried to append the three lists and then subtract the football list from the combined list but i was getting multiple errors