title: What is the syntactical equivalent to switch/case in Python?
body: <p>Programming languages like C/C++, C#, Java, JavaScript and Pascal <sup>(<a href="https://en.wikipedia.org/wiki/Switch_statement#mw-content-text:%7E:text=used%20in%20programming%20languages%20like%20C%2FC%2B%2B%2C,C%2FC%2B%2B%2C%20C%23%2C%20Visual%20Basic%20.NET%2C%20Java" rel="noreferrer">Reference</a>)</sup> have a combination of <code>switch</code> and <code>case</code> statements (sometimes also called <code>select</code> or <code>inspect</code>) which allow you to check one value against several conditions to perform certain actions.</p>
  <pre><code>my_value = 10;
  switch(my_value) {
      case 10:
          print(&quot;The number is ten&quot;);
      case 2*10:
          print(&quot;The number is the double of ten&quot;);
      case 100:
          print(&quot;The number is one hundred&quot;);
      default:
          print(&quot;The number is none of 10, 2*10 or 100&quot;);
  }
  </code></pre>
  <p><sup>Pseudo-Code to depict the special syntax of the <code>switch</code>-<code>case</code> construct.</sup></p>
  <p>Being aware of functional equivalents like <a href="https://stackoverflow.com/a/11479840/6685358">dictionary-lookups</a>, is there a purely <strong>syntactical</strong> equivalent to the above programming construct?</p>