Excuse me for the basic question but I come from a PHP background and made use of multidimensional arrays to transfer information around.
What is the best alternative in Python?
$person[1]['name'] = 'bob'
$person[1]['age'] = 27
$person[1]['email'] = '[email protected]'
What I'm trying to is prepare an array to send to a template, I need to get a list of persons and then calculate when their next meeting/visit should be. I then want to send an array to the template like:
Name Last Meeting Date Next Meeting Date
Bob 01/04/2012 01/05/2015
The Next meeting date is calculated based on many variables so I just want to prepare the array in the view and then pass it to the template.