Comment Python dictionaries (Score 0) 702
Why not python dictionaries?
Like
wifi_spots = {
'Spot1' :['field0', 'field1', ...],
'Spot2' :['field0', 'field1', ...],
'Spot3' :['field0', 'field1', ...],
}
then you can access it like
fields = wifi_spots['Spot1']
field0 = fields[0]
Like
wifi_spots = {
'Spot1'
'Spot2'
'Spot3'
}
then you can access it like
fields = wifi_spots['Spot1']
field0 = fields[0]