Tuples and Sets
Nov 24, 2023 · 6 min read · Tuples Tuples are in-built data structures in Python that are similar to lists, except that tuples are immutable (i.e., contents cannot be changed). Creating a Tuple # empty tuple t = () # tuple with single item t = ('hello',) # Homogeneous tuple ...
Join discussion
