Hi,
The below code works:
But the following code is giving error -
Can you please suggest something here.
Thanks.
The below code works:
Code:
newList = ['aa', 'bb', 'cc', 'dd'] newList[2] = 'zz' print newList ['aa', 'bb', 'zz', 'dd']
Code:
myDBRow = [''] * len(columnList) myDBRow[DB.RegionCode] = 'ABC' TypeError: 'str' object does not support item assignment
Thanks.
Comment