List Comprehension - Python 2.7
<p>I tried to convert the following into a list comprehension, but it's giving me an invalid syntax error. I tried a few solutions such as zipping the combinations, but I can't get it to work.</p>

<p>I'm obviously missing some fundamental understanding of what I can and cannot do with list comprehensions. What is my mistake?</p>

<p><strong>Works</strong></p>

<pre><code>def myfun(x, y, z):
        for c in (x,y,z), (x,z,y), (y,x,z), (y,z,x), (z,x,y), (z,y,x):
            print(c)
</code></pre>

<p><strong>Does not work</strong></p>

<pre><code>def myfun(x, y, z):
    [print(c) for c in (x,y,z), (x,z,y), (y,x,z), (y,z,x), (z,x,y), (z,y,x)]
</code></pre>