title: Logic to execute one or multiple block of code based on the criteria
body: <p>Instead of writing many if else statements I'm thinking someone smart may have a better logic for this.</p>
  <pre><code>inp = input(&quot;Type comma separated US state code(s)&quot;)
  </code></pre>
  <p>Logic to execute a block of code if inp is &quot;MA&quot;.
  If inp is &quot;MA, CA, MN&quot; it will execute a block of code under MA, CA, and MN.</p>
  <p>You can imagine inp could be 1 state or any combination of 50 states. Logic would execute a block of code written for each state</p>
  <p>Writing program in python</p>