title: How to calculate values depending on the training type?
body: <p>I have several numbered types of training that have associated values.</p>
  
  <p>Types of possible training:</p>
  
  <ol>
  <li><p>small: 0.5<br />
  big: 0.7</p></li>
  <li><p>small: 0.7<br />
  big: 0.8</p></li>
  <li><p>etc...</p></li>
  </ol>
  
  <p>If training type number 1 is chosen, how can I determine the pair of associated values for use in calculations? For example, if training type is 1:</p>
  
  <pre><code>small = (220 - 60)*0.5
  big = (220 - 60)*0.7
  </code></pre>
  
  <p>I want to know how to write code so that the values used in subsequent calculations varies according to the training type selected.</p>
  
  <p>What I have so far:</p>
  
  <pre><code>training = str(input("Choose training type (1, 2, 3): "))
  s1 = 0.5
  s2 = 0.7
  s3 = 0.8
  b1 = 0.7
  b2 = 0.8
  b3 = 0.88
  spulse = "Small pulse: "
  bpulse = "Big pulse: "
  if training == 1:
      small = (220 - 60) * s1 
      big = (220 - 60) * b1
  elif training == 2:
      small = (220 - 60) * s2
      big = (220 - 60) * b2
  elif training == 3:
      small = (220 - 60) * s3
      big = (220 - 60) * b3
  
  print(spulse + str(small) + bpulse + str(big))
  </code></pre>