Join the Prolog Track
Prolog is a general-purpose logic programming language associated with artificial intelligence and computational linguistics.
Join the Prolog Track
Track mentors

4 Mentors

Our mentors are friendly, experienced Prolog developers who will help teach you new techniques and tricks.
Track students

1,441 Students

Join hundreds of students who have enjoyed learning and improving their skills by taking this track.
Track exercises

19 Exercises

Hundreds of hours have gone into making these exercises fun, useful, and challenging to help you enjoy learning.

About Prolog

append([],    L,  L). 
append([H|T], L2, [H|L3]) :- append(T, L2, L3).

?- appendx([1,2],[3,4],X).
X = [1, 2, 3, 4].

?- appendx([1,2],X,[1,2,3,4]).
X = [3, 4].

?- appendx(X,[3,4],[1,2,3,4]).
X = [1, 2].

Prolog (short for "Programming Logic") is a declarative and logic based programming language developed in 1972 by Alain Colmerauer and Philippe Roussel. It has many applications, most notably in Artificial Intelligence for its pattern matching abilities over natural language parse trees.

Prolog is written in "facts" and "rules" that define logical formulas, similar to functional programs. Learning Prolog is a great way to improve skills with recursion, predicate logic, and constraint logic programming.

Join the Prolog track

A tremendous learning opportunity to explore the depth of your own knowledge

Exercism is fantastic in learning new languages but that is not the extent of it. If you are a "more experienced" programmer you may have encountered impostor syndrome: the idea you don't really know what you think you know. Exercism lets you solve problems and put them in the space of open feedback which is a tremendous learning opportunity to explore the depth of your own knowledge. Even if you have been programming in a language for awhile it is worth checking into Exercism to see where you stand with current implementation practices.

Relaxed. Encouraging. Supportive.

Meet the Prolog Track mentors

Once you join the Prolog language track, you will receive support and feedback from our team of mentors. Here are the bios of a few of the mentors of this track.

Avatar of Tiago Antao

Tiago Antao Personal site

Did Prolog professionally a long time ago. Still think its the best language in the world!
Avatar of Yauheni Tsiarokhin

Yauheni Tsiarokhin

functional programming enthusiast
Avatar of Anne Ogborn

Anne Ogborn

Contributor to SWI-Prolog. Love Prolog and want to share the love.
Avatar of Lucas Polymeris

Lucas Polymeris

I'd like to make Prolog a better known programming language.
Fun. Challenging. Interesting

Community-sourced Prolog exercises

These are a few of the 19 exercises on the Prolog track. You can see all the exercises here.

Complex Numbers
Nucleotide Count
Sum Of Multiples
Space Age
Pascal's Triangle
Passionate. Knowledgeable. Creative.

Meet the Prolog Track maintainers

The Prolog Maintainers are the brains behind the Prolog Track. They spend their spare time creating interesting and challenging exercises that we can all learn from. We are incredibly grateful for their hard work. Here are the bios of a few of the maintainers of this track.

Avatar of Lucas Polymeris

Lucas Polymeris

Math Student.

Get started with the Prolog track. As with everything on Exercism, it's 100% free!

Join the Prolog Track