Tuples

Hey everyone, are tuples more like a class or structure which is in C++??

it’s a collection of objects, similar to a list but it can’t be modified/they’re immutable.

https://docs.python.org/3/library/stdtypes.html?highlight=tuple#tuple

1 Like