2-dimensional Tuple vs OrderedDict vs List of Tuples
<p>Let's say I have an immutable list of key-value pairs</p>

<pre><code>"banana" : "yellow"
"apple" : "red"
"kiwi" : "green"
</code></pre>

<p>The only thing that matters is the ordering, I will never need to access an item directly by its key, only iterate through them in order and receive a pair of values.</p>

<p>So, considering what is said above, which is more recommended, a 2d tuple, a dictionary or a list of tuples?</p>

<pre><code>from collections import OrderedDict    

two_d_tuple = (
('banana', 'yellow'),
('apple', 'red'),
('kiwi', 'green')
)

list_of_tuples = [
('banana', 'yellow'),
('apple', 'red'),
('kiwi', 'green')
]

ordered_dict = OrderedDict(list_of_tuples)
</code></pre>