(import "os") (print (os.path.abspath ".")) ; something like /home/tag (defn square [x] (* x x)) (defn factorial (n) (if (<= n 1) 1 (* n (factorial (- n 1))))) (defn fib (n) (if (< n 2) n (+ (fib (- n 1)) (fib (- n 2))))) (print (fib 2)) ; 1 (print "4! =" (factorial 4)) ; 4! = 24
Home
Try it
Source
{% block content %} {% endblock %}