title: syntax of "is" operator in python
body: <pre><code>list = ['xy', 'yz', '=', '1', 'in', '&gt;', 't']
  
  for value in list:
     if value is '0' or '1':
        Zustand = value
        print(&quot;Zustand:&quot;, Zustand)
  </code></pre>
  <p>The if loop should check if the value of list is 0 or 1. Why does it print every value? I also tried the &quot;==&quot; operator.</p>