lists can be modified without replacing the original object : Id : Buildin Function PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Function » Id »

 

lists can be modified without replacing the original object


aList = ['A'8385'B']
print aList
print aList[2]
print id(aList)
aList[2= aList[21
aList[3'C'
print aList
print id(aList)
print aList.append('D')
print aList.append(aList[21)
print aList
print id(aList)



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Buildin Function
» Id