Tuples are used to group together related data, such as a person’s name, their age, and their gender. An assignment to all of the elements in a tuple using a single assignment statement. Tuple assignment occurs simultaneously rather than in sequence, making it useful for swapping values.
Lists, strings and tuples are ordered sequences of objects. Unlike strings that contain only characters, list and tuples can contain any type of objects. Lists and tuples are like arrays. Tuples like strings are immutables
Please, Share, Support, Subscribe!
Follow us on social media:
Get Rs. 2200 Free Coupon on Airbnb.com when signing up.