![]() ![]() Dictionary - We can change the elements of a dictionary as dictionary is a mutable sequence.Yes, we can change any element of a sequence in python only if the type of the sequence is mutable. ![]() 1.Ĭan you change an element of a sequence? What if a sequence is a dictionary? What if a sequence is a tuple? Now the expression a] has become a where a represents fifth index of a i.e. Now the expression a]] has become a] where a represents second index of tuple a i.e., 4. Now the expression a+1]]] has become a]] where a represents fifth index of tuple a i.e., 1.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |