0

Why there's explained that the "in" function is exlusively of sets?

I saw it also in lists.

28th Nov 2016, 8:18 PM
Nicoletta Alba
Nicoletta Alba - avatar
2 odpowiedzi
+ 2
'in' keyword is used generally for every iterable object, not only set and list. it can be a string, dictionary, range, generator, tuple, etc.
28th Nov 2016, 8:55 PM
Demeth
Demeth - avatar
0
That might just be a mistake, it happens, but someone should report it if it is an absurdity.
28th Nov 2016, 9:16 PM
Amaras A
Amaras A - avatar