title: How to compare the variables at same index of multiple lists in python
body: <p><a href="https://i.stack.imgur.com/LbQ82.png" rel="nofollow noreferrer">y </a>I have multiple lists from which I want to find the maximum number at same index.</p>
  
  <pre><code>i = 0
  list = [""]
  
  # open file and read the content in a list
  with open('/media/saqib/Study/Angular/weatherfiles/weatherfiles/Murree_weather_2004_Aug.txt', 'r') as filehandle:  
  
      for line in filehandle:
  
          # remove linebreak which is the last character of the string
          list.append(line.strip().split(','))
  
          print list[i]
          i = i+1
  
        # add item to the list
  </code></pre>