Python: These Are 3 AI Based Programming Languages
Python: These Are 3 AI Based Programming Languages
Highlight their
importance by comparison of history, functions supported, style of
programming and so on. (like to see best possible answer)
Python
Java
Java is considered one of the best programming languages in the world and the last
20 years of its use is proof of that. With its high user-friendliness, flexible
nature and platform independence, Java has been used for developing for AI in
various ways
Lisp
Short for List Processing, it is the second oldest programming language next to
Fortran. Called as one of the Founding Fathers of AI, Lisp was created by John
McCarthy in 1958.
Comparision Chart:
Imperative:
Computation is
performed as a
direct change to
program state.
This style is
especially useful
when
manipulating
data structures
and produces
elegant yet
simple code.
Object-
oriented:
Relies on data
fields that are
treated as objects
and manipulated
only through
prescribed
methods.
Procedural:
Tasks are treated
as step-by-step
iterations where
common tasks
are placed in
functions that are
called as needed.
This coding style
favors iteration,
sequencing,
selection, and
modularization.
a. L1 = (a b c d e f g h)
b. L2 = ((a b c) (d) e (f g) h)
c. L3 = ((a) (b (c) d) e (f g) h)
d. L4 = ((a b) c (d) e (f g) h)
g. 8 Fruits
h. 6 Vegetables
Even Numbers:
(eval even)
Odd Numbers:
Q.4. How to create functions using defun for SQUARE, CUBE,
QUAD and adding 2 numbers a+b, subtracting 2 numbers a-b,
multiplying 2 numbers a*b and dividing 2 numbers a/b and
then extending it to the third variable of result like c=a+b, c=a-b,
c=a*b and c=a/b.