#tuples

Found 2 articles tagged with #tuples

How to use tuple type hints in Python

Python 3.8 and earlier require importing `Tuple` from the `typing` module. Python 3.9+ allows using `tuple` directly without importing.

Dec 12, 2023#python#tuples

Difference between tuples and arrays in TypeScript

Tuples can store only a fixed number of elements and types at each index, while arrays can store any combination of types and the order is not important.