In 10 carts
Price: ₹ 158.000
Original Price: ₹ 347.000
Tuple in python: Tuples are used to store
You can only make an offer when buying a single item
Tuples are used to store multiple items in a single variable. Tuple is one of 4 built-in data types in Python used to store collections of data, the other 3 are List, Set, and Dictionary, all with different qualities and usage. In Python, a tuple is a built-in data type that allows you to create immutable sequences of values . The values or items in a tuple can be of any type. This makes tuples pretty useful in those situations where you need to store heterogeneous data, like that in a database record, for example. Tuples are an essential data structure in Python that offer an immutable, ordered collection of elements . They are similar to lists, but with a key difference – once created, their elements cannot be changed. You can create a tuple by placing comma-separated values inside parentheses: Learn how to create a Python tuple , how to use tuples , how to convert them to lists and strings, and how tuples differ from lists and sets.
4.9 out of 5
(54798 reviews)