title: How to specifically name each value in a list of tuples in python?
body: <p>The Tuple_list prints out something like &quot;<code>[ (2000, 1, 1, 1, 135) , (2000, 1, 1, 2, 136) ) , etc...]</code>&quot; and I can't figure out how to assign &quot;year,month,day,hour,height&quot; to every tuple in the list...&quot;</p>
  <pre><code>def read_file(filename):
      with open(filename, &quot;r&quot;) as read:
          pre_list = list()
  
          for line in read.readlines():
              remove_symbols = line.strip()
              make_list = remove_symbols.replace(&quot; &quot;, &quot;, &quot;)
              pre_list += make_list.split('()')
  
          Tuple_list = [tuple(map(int, each.split(', '))) for each in pre_list]
  
          for n in Tuple_list:
              year, month, day, hour, height = Tuple_list[n][0], Tuple_list[
                  n][1], Tuple_list[n][2], Tuple_list[n][3], Tuple_list[n][4]
  
          print(month)
  
          return Tuple_list
  swag = read_file(&quot;VIK_sealevel_2000.txt&quot;)
  </code></pre>