If all 9 strings in list is replaced: do something
<p>As the title:
If all 9 strings in list is replaced, then a task should run.</p>

<p>Here is the code:</p>

<pre><code>list = [
        ['0', '0', '0'],
        ['0', '0', '0'],
        ['0', '0', '0']
    ]
</code></pre>

<p>If all of them is either replaced by a "1" or "2" doesnt matter which is replaced by what. Then it should run a task.</p>

<p>So how do I if all of the 9 spots have been replaced by either a "1" or "2"?</p>

<p>There is simply too many possibilities to write all the combinations down, and compare them to the list.</p>