There is no definitive answer to this issue because it is very dependent on the programming languages you choose. Artificial intelligence systems have been written in almost every language ever devised. Lisp, Prolog, C/C++, Java, and, more lately, Python, appear to be the most popular.
LISP: For many years, AI was mostly conducted as research at universities and laboratories, therefore quick prototyping was prioritized over quick execution. One of the reasons AI favors high-level languages like Lisp is because of this. As a result of this heritage, modern AI Lisp programmers have access to a wealth of community resources. Garbage collection, dynamic typing, functions as data, consistent syntax, interactive environment, and extensibility are all useful features for AI programming.
PROLOG: This language is the winner of the “awesome concept” competition. It wasn’t until the 1970s that individuals realized that a programme might be made up of a set of logical assertions and a generic theorem prover. Prolog combines the high-level and conventional benefits of Lisp with the added benefit of a built-in unifier, which is very valuable in AI. Prolog appears to be a suitable fit for issues involving logic or whose solutions have a concise logical characterization. Its most serious flaw (IMHO)