lk = ['oid', 'timestamp', 'signals', 'area', 'building', 'city', 'name', 'floor', 'industry', 'region', 'stress', 'longitude', 'latitude', 'area', 'area_code'] oid, timestamp, signals, area, building, city, name, floor, industry, region, stress, longitude, latitude, area, area_code = l d={} for k in lk: d[k]=eval(k)