Flipping the boolean values in a list Python
<p>I have a boolean list in Python</p>

<pre><code>mylist  = [True , True, False,...]
</code></pre>

<p>which I want to change to the logical opposite <code>[False, False, True , ...]</code> 
Is there an inbuilt way to do this in Python (something like a call <code>not(mylist)</code> )  without a hand-written loop to reverse the elements? </p>
