title: Calculating BMI through Python: Take 2
body: <p>Sorry about my previous question. The question I have to answer is this:</p>
  
  <p>Body Mass Index (BMI) is a good indicator of body fatness for most people. The formula for BMI is weight/ height2 where weight is in kilograms and height is in meters. Write a program that prompts for weight in pounds and height in inches, converts the values to metric, and then calculates and displays the BMI value.</p>
  
  <p>What I have so far is this: </p>
  
  <pre><code>"""
  BMI Calculator
  
  1. Obtain weight in pounds and height in inches
  2. Convert weight to kilograms and height to meters
  3. Calculate BMI with the formula weight/height^2
  """
  
  #prompt user for input from keyboard
  weight= input ("How much do you weigh (in pounds)?")
  #this get's the person's weight in pounds
  
  weight_in_kg= weight/2.2
  #this converts weight to kilograms
  
  height= input ("What is your height (in inches)?")
  #this gets the person's height in inches
  
  height_in_meter=height*2.54
  #this converts height to meters
  
  bmi=weight_in_kg/(height_in_meters*2)
  #this calculates BMI
  
  print (BMI)
  </code></pre>
  
  <p>My first step works, but that is the easy part. I know  that in Python the equal sign assigns something, so I'm not sure if that is the problem, but I really do not know what to do. I am really sorry. When I run the program it says:</p>
  
  <p>TypeError : unsupported operand type(s) for /: 'str' and 'float'</p>
  
  <p>If anyone could give me any tips on what I am doing wrong, I would really appreciate it. And if not, thank you for your time. Thanks again.</p>