In Python, tuples are ordered linear data structures that are identical to lists but are immutable. They cannot have their values modified, appended, or removed, i.e., stored data will never change.
They’re declared with parentheses. For single values, to declare as a tuple, a trailing comma can be added, otherwise it’d be declared as whatever type is being stored.
A quick conversion from a tuple to a list can be done with the list()
function.