title: "Switch/case" statement executes all possible statements in Python
body: <p>I have implemented a second switch case statement into my code but for some reason one works and the other doesn't.</p>
  <p>The broken one in question is this:</p>
  <pre><code>def graph_add_depend(caseSelected, graph, data):
  switcher = {
      1: graph.addFullNC(data[1], data[0]),
      2: graph.addFullNC(data[0], data[1]),
      0: graph.addFullNC2(data[0], data[1])
  }.get(caseSelected, print(&quot;Something went wrong: GAD 44&quot;))
  </code></pre>
  <p>I am calling it with:</p>
  <pre><code>graph_add_depend(is_added, graph, temp)
  </code></pre>
  <p>When i execude the code it wont go to the correct case but will execute every one of them: aka 1 then 2 then 0</p>
  <p>Is there anyway to fix this. I cant by the love of god find the problem.
  The most frustrating thing to me is that by my eye the switch statement that works and this broken one are virtualy the same...</p>