Test type of elements python tuple/list
<p>How do you verify that the type of all elements in a list or a tuple are the same and of a certain type? </p>

<p>for example:</p>

<pre><code>(1, 2, 3)  # test for all int = True
(1, 3, 'a') # test for all int = False
</code></pre>
