filmov
tv
Python Data Structures : Tuple Operations – Add, Remove, Slice, Concat, Reverse

Показать описание
Python Tuple operations – Add, Remove, Slice, Concat, Reverse.
A tuple is a sequence of some objects. A tuple is an immutable data structure. We cannot change the values of the tuple, it’s immutable. So operations like append or modify cannot be performed on tuples.
Here I will show some of the tuple operations in Python
.
We can Add, Remove, Slice, Concat, Delete and Reverse operations on a tuple.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-~-~~-~~~-~~-~-
-~-~~-~~~-~~-~-
A tuple is a sequence of some objects. A tuple is an immutable data structure. We cannot change the values of the tuple, it’s immutable. So operations like append or modify cannot be performed on tuples.
Here I will show some of the tuple operations in Python
.
We can Add, Remove, Slice, Concat, Delete and Reverse operations on a tuple.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-~-~~-~~~-~~-~-
-~-~~-~~~-~~-~-