title: Python: I'm trying to find the maximum difference between two elements in a list
body: <p>I need to find the maximum difference in a list between any two elements. In list <code>[1,2,3,4,5]</code> the maximum difference is  4 (between elements 1 and 5) using for loops.</p>
  
  <p>This program needs to output the location of these two elements (0 and 4) and their values (1 and 5). </p>
  
  <p>I can only figure out how to find the max difference between consecutive values, but this creates a problem if the maximum starts elsewhere, e.g. <code>[4,1,6,3,10,8]</code> where the largest difference is between 1 and 10 (positions 1 and 4). Can someone help me? </p>