DEV Community

Super Kai (Kazuya Ito)
Super Kai (Kazuya Ito)

Posted on • Edited on

I - Glossary (Python)

Buy Me a Coffee

item

  • is the number, character, byte or key-value pair in an iterable:
    • E.g. [0, 1, 2] has 3 items 0, 1 and 2.
    • E.g. 'ABC' and b'ABC' have 3 items A, B and C each.
    • E.g. {'A':0, 'B':1, 'C':2} has 3 items 'A':0, 'B':1 and 'C':2.
  • can also be called element or value but I use item because element is long and value is too broad, confusing with the value of key-value pair.

Top comments (0)