Code:
list[1].extend(data_ncdc[il][3])
Code:
list[1].extend(float(data_ncdc[il][3]))
if coord_ind == None: ncdc_station.append(data_ncdc[il][3]) else: ncdc_station[coord_ind[0]].extend(data_ncdc[il][3])
>>> a = [1,2,3] >>> a.extend('a') >>> a [1, 2, 3, 'a'] >>> a.extend([1,2,3]) >>> a [1, 2, 3, 'a', 1, 2, 3] >>> 's'.extend([3,4,5]) Traceback (most recent call last): File "<interactive input>", line 1, in ? AttributeError: 'str' object has no attribute 'extend' >>> 's'.append(1) Traceback (most recent call last): File "<interactive input>", line 1, in ? AttributeError: 'str' object has no attribute 'append' >>>
Comment