title: Sum List of Elements Using Index of List
body: <p>I am trying to find the sum of the kitchen(18.0) and bedroom area (10.75)</p>
  
  <pre><code># Create the areas list
   areas = ["hallway", 11.25, "kitchen", 18.0, "living room", 20.0, "bedroom", 
  10.75, "bathroom", 9.50]
  
   # Sum of kitchen and bedroom area: eat_sleep_area
   eat_sleep_area = sum(areas[3],areas[-3])
  
   # Print the variable eat_sleep_area
   print(eat_sleep_area)
  </code></pre>
  
  <p>but when I try to run the code it says this :
        TypeError: 'float' object is not iterable
  Also I observed that when I used other functions like min,max it works just fine 
  can anyone explain me the reason for this?</p>