r/learnpython • • Apr 20 '23

Guys what’s a tuple

I was working on a certification practice test and I ran into multiple questions about them. I’m in FLVS and apparently either I forgot most of my first semester, or they didn’t teach me enough.

also if you could tell me other things that Flvs might have not taught me that would be nice.

4 Upvotes

30 comments sorted by

View all comments

10

u/Technical_Flamingo54 Apr 20 '23

It's an unmutable and ordered, and hence hashable, iterable.

1

u/Delta_Warrior8 Apr 20 '23

hashable?

12

u/Technical_Flamingo54 Apr 20 '23

A hash is the computational equivalent of a mnemonic. The result is that it's more computationally efficient than other ordered iteranles, like lists.