Download our e-book of Introduction To Python
Deepen Sathe
3 years ago
# Can not reassign
t= "Tutorialspoint"
print type(t)
t[0] = "M"
t[0] = "M"
TypeError: 'str' object does not support item assignment
.x = 'banana'
for idx in range (0,5):
print x[idx], "=", id(x[idx])
b = 91909376
a = 91836864
n = 91259888
a = 91836864
n = 91259888