Python Scenario Building Through Input Classification
<p>I'm trying to build an efficient way to classify 4 different input variables and output them together to build a scenario 's', using Python.  I can't seem to find the best way to do it.  Any help here would be greatly appreciated.  I've scoured all related posts and can't find an exact answer.  </p>

<p>Basically I want to output: </p>

<pre><code>scenario s = (w: 'value_of_w', x: 'value_of_x', y: 'value_of_y', z: 'value_of_z')
</code></pre>

<p>where the values will be either 'low', 'medium', or 'high' given the below e.g.:</p>

<pre><code>if w &lt; 10:
  value of w = 'low'
elif 10 &lt; w &lt; 50:
  value of w = 'med'
elif w &gt; 50:
  value of w = 'high'

if x &lt; 5:
  value of w = 'low'
elif 5 &lt; x &lt; 15:
  value of w = 'med'
elif x &gt; 15:
  value of x = 'high'

if y &lt; 25:
  value of y = 'low'
elif 25 &lt; y &lt; 75:
  value of w = 'med'
elif y &gt; 75:
  value of y = 'high'

if z &lt; 3:
  value of z = 'low'
elif 3 &lt; z &lt; 7:
  value of z = 'med'
elif z &gt; 7:
  value of z = 'high'
</code></pre>

<p>The actual values of w, x, y, z to come in through an input form.  </p>
