title: Reversing a list of list with string characters
body: <p>I have a problem where I am given a list of lists having strings.
  I have to reverse not only the strings but also output a list of lists in reverse way</p>
  
  <p>Example :     </p>
  
  <pre><code>input_list = [["CAT", "BAT", "SAT"], ["MAN","CHAN", "LAN"], ["CAL", "NJ","NYC"]]
  </code></pre>
  
  <p>EXPECTED OUTPUT :</p>
  
  <pre><code>[["CYN", "JN", "LAC"], ["NAL", "NAHC", "NAM"], ["TAS", "TAB", "TAC"]]
  </code></pre>
  
  <p>Code I am trying :</p>
  
  <pre><code>doc_file = [["CAT", "BAT", "SAT"],
              ["MAN","CHAN", "LAN"],
              ["CAL", "NJ","NYC"]]
  temp_list = []
  temp_list2 = []
  #print("reversing First Line:")
  rev_main_list = list(reversed(doc_file))
  #print(rev_main_list)
  for i in range(len(rev_main_list)):
       for j in range(len(rev_main_list[i])):
          # print("value of i:", i)
          # print("value of j:", j)
          temp_list.append((rev_main_list[i][j][::-1]))
      #print("outer loop i:", i)
      temp_list2.append(temp_list[i])
      rev_main_list =temp_list2
      print(rev_main_list)
  </code></pre>
  
  <p>Your help is much appreciated</p>