Page 88 - Modular v1.1 Pyhton
P. 88

CHANGING A TUPLE

                  Elements of a tuple cannot be changed, but, if a tuple contains a list as its member then that
                  member can be change by using the index value of the list element.

                  Program 9: To change a tuple.












                  On running the above program, you will get the following output:


















                      DELETING A TUPLE

                  Elements of a tuple cannot deleted or removed, but we can delete the entire tuple by using the
                  del keyword.

                  Program 10: To delete a tuple.












                  On running the above program, you will get the following output:






















                   86     Touchpad MODULAR (Version 1.0)
   83   84   85   86   87   88   89   90   91   92   93