They don&#x27;t do the same thing. Q does printing. import q; q(var) -&gt; prints var to &#x2F;tmp&#x2F;q, with syntax highlighting, separate files for big output, etc. It can also do lots of other cool things, cf 1-page documentation in the link. :)