#!/usr/bin/python
lists = ["Bala","Subramaniam","Natarajan"]
print "The lists is of type : ", type(lists)
lists[2] = "changed"
print lists
tuples = ("Bala","Subramaniam","Natarajan")
print "The tuples is of type : ", type(tuples)
tuples[2] = "changed"
print tuples
lists = ["Bala","Subramaniam","Natarajan"]
print "The lists is of type : ", type(lists)
lists[2] = "changed"
print lists
tuples = ("Bala","Subramaniam","Natarajan")
print "The tuples is of type : ", type(tuples)
tuples[2] = "changed"
print tuples
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6NBCcC164Q7c2cZYm6rOZw2vqv2bCgQscjiUXGwYQdSZZ026Ilg4x_pG0TVouYBqPePt76_tCHQIV38u7AbToU_XcEzXMd9GvZijdjShvoPE_YZne_gkE5aRpWL9Vcx2n4jh1BTPzxY8/s1600/nonchangablelist.png)
No comments:
Post a Comment