Juan Reynoso Elias
En 2019-02-27 21:08:35

Common Lisp and Python by examples


I would like to share some examples that have written by me, so you can enhance, fix or share them.


https://github.com/juan-reynoso/Common-Lisp-and-Python-by-examples


Loop Through a List

    Lisp
    CL-USER> (defparameter *thislist* '(1 2 3))
    *THISLIST*
    CL-USER> (dolist (item *thislist* ) (format t "~a " item))
    1 2 3
    NIL


   Python
    >>> thislist = [1, 2, 3]
    >>> for x in thislist:
    print(x)
    1
    2
    3
    >>>