Say I have dictionaries like this :
{'AccountNum': '873627867348', 'userID': 'abc'}
{'AccountNum': '873627867348', 'userID': 'def'}
{'AccountNum': '038683828978', 'userID': 'ghi'}
{'AccountNum': '581889263266', 'userID': 'jkl'}
{'AccountNum': '581889263266', 'userID': 'mno'}
{'AccountNum': '581889263266', 'userID': 'pqr'}
I need to convert this into a list such that both the keys and values are printed. Actually I am using Django as the web framework. I need to return a list and render it to my template page, where I will be displaying the user id and accountnum in the rows of the table. 
preferred output sample:
['AccountNum', '873627867348', 'userID', 'abc']
 
     
     
    