I am new to Python, so I need a little guidence. I have a php file that I am porting over into python and can't seem to find a good way to convert the following php array into a python array or list. I did some research and found that python list are better.
PHP array (names from sql query)
$heads = array(
'ServerHostID' => 'ServerHostID',
'SERVER_NAME' => 'Server Name',
'SERVER_NUMBER' => 'Server Number',
'SERVER_OPERATIONAL_STATUS' => 'Server Operational Status',
'HOST_NAME' => 'Host Name',
'HOST_NUMBER' => 'Host Number',
'ALIAS' => 'Alias',
'UTILIZATION_PERCENTAGE' => 'Utilization Percentage',
'DATA_SIZE' => 'Data Size',
'HAS_REMOTE_ACCESS' => 'Has Remote Access',
'CLUSTER' => 'Cluster',
'VM_NAME' => 'VM Name',
'VM_IP_ADDRESS' => 'VM IP Address',
'CPU_ALLOCATED' => 'CPU Allocated',
'MEMORY_ALLOCATED' => 'Memory Allocated',
'IS_VIRTUAL' => 'Is Virtual',
'LOGICAL_PARTITION' => 'Logical Partition',
'PHYSICAL_PARTITION' => 'Physical Partition',
'OPERATING_SYSTEM_SOFTWARE' => 'Operating System Software',
'OPERATIONAL_USE' => 'Operational Use',
'FUNCTIONAL_USE' => 'Functional Use',
'HOST_OPERATIONAL_STATUS' => 'Host Operational Status'
);
Thank you for your help!