Find out all the punctuations in a sentence that has been put into a list
<p>I have this variable:</p>

<pre><code>Words = ["Hi",".","how","are","you","?","I","feel","like","I","could",",","do","better"]
</code></pre>

<p>From this I want a variable that finds all the punctuations and puts it into a list as well. Like this:</p>

<pre><code>Punctuations = [".","?",","]
</code></pre>

<p>You can use <a href="https://docs.python.org/2/library/string.html#string.punctuation" rel="nofollow"><code>string.punctuation</code></a> to identify punctuation marks:</p>

<pre><code>from string import punctuation
punctuations = [w for w in words if w in punctuation]
</code></pre>

python list punctuation