๐Ÿค–
B.TECH II YEAR โ€ข II SEMESTER โ€ข R22

Skill Development Course - Lab Manual

PROLOG / LISP / PySWIP โ€ข Program 10 Solution

๐Ÿ“˜ R22 Regulation ๐ŸŽ“ II Year ๐Ÿ“š II Semester ๐Ÿค– Skill Development Course ๐Ÿงช Lab Program 10
Aim

Write a Prolog predicate, countLists(Alist, Ne, Nl), using accumulators, that is true when Nl is the number of items that are listed at the top level of Alist and Ne is the number of empty lists. Suggestion: First try to count the lists, or empty lists, then modify by adding the other counter.

โ† All Programs

๐Ÿ’ป Solution

week11.pl
The program file week11.pl was not found in the ai folder.

๐Ÿ“ค Output

w11.txt
The output file w11.txt was not found in the ai/outputs folder.
โ† Program 9 Program 11 โ†’
โ† Back to Skill Development Course Lab Programs ๐Ÿ“š All Lab Manuals