Example of Immutable : The values declared in Tuple are constant at their Index. User cannot update them, however, user can update index level data in List. list = ["Hello", "bye"] list[0] = "Seeya" # This is allowed list = ("Hello", "bye") list[0] = "Seeya" # This is NOT allowed
Thanks Mamta for your support for batter understanding 🙏
Really very helpful
Glad to hear that
Mam...how can i reach you
Hi you can send out email @ Sqltrainingsession@gmail.com
Example of Immutable :
The values declared in Tuple are constant at their Index. User cannot update them, however, user can update index level data in List.
list = ["Hello", "bye"]
list[0] = "Seeya" # This is allowed
list = ("Hello", "bye")
list[0] = "Seeya" # This is NOT allowed
Correct, we cannot change values at index level in tuple..