Python: set varaibles in array : <p>Is it possible to set piece array as [x , y] variable. For example, piece [ [x1,y1],[x2,y2],....] </p>

<p>Below is my code:</p>

<pre><code>piece = [[387,500] , [247,499] , [120,496] , [533,488] , [191,432] , [464,432],[328,426] , [50,426]]

if (292&lt;x&lt;350) and (390&lt;y&lt;450) in piece:
    print("do something")
</code></pre>
