title: How to get a float value with a string as input parameter in Python?
body: <p><strong>I wrote the following:</strong></p>
  
  <pre><code>def payment(order):
  
  B = 2.00
  W = 2.50
  S = 1.50
  
  order = ["B", "W", "S"]
  
  return(order)
  
  payment('BBSWS')
  </code></pre>
  
  <p>I need to get <strong><em>9.5 as output</em></strong>, however, my output is ('B', 'W', 'S').</p>
  
  <p>What do I need to change in my code to get the right answer 9.5?</p>
  
  <p>Thank you.</p>