title: Getting the range of data from a list in Python
body: <p>I have a set of data that is in a list. I am not sure how to make a function which can take the range of that data and return the min and max values in a tuple. </p>
  
  <p>data:</p>
  
  <pre><code>[1,3,4,463,2,3,6,8,9,4,254,6,72]
  </code></pre>
  
  <p>my code at the moment:</p>
  
  <pre><code>def getrange(data):
      result=[]
      if i,c in data:
          range1 = min(data)
          range2 = max(data)
          result.append(range1, range2)
      return result 
  </code></pre>