Is there a way to return/print list item without quotes or brackets?
<p>Sorry if this is already mentioned somewhere(I couldn't find it).</p>

<p>I basically want to list an item from a list but its including quotes and brackets(which I don't want).
Here's my data:</p>

<pre><code>inputData = {'red':3, 'blue':1, 'green':2, 'organge':5}
</code></pre>

<p>Here's my class to find items either based on key or value.</p>

<pre><code>class Lookup(dict):
    """
    a dictionary which can lookup value by key, or keys by value
    """
    def __init__(self, items=[]):
        """items can be a list of pair_lists or a dictionary"""
        dict.__init__(self, items)

    def get_key(self, value):
        """find the key(s) as a list given a value"""
        return [item[0] for item in self.items() if item[1] == value]

    def get_value(self, key):
        """find the value given a key"""
        return self[key]
</code></pre>

<p>it works fine except for the brackets.</p>

<pre><code>print Lookup().get_key(2) # ['blue']  but I want it to just output blue
</code></pre>

<p>I know I can do this via replacing the bracket/quotes( <code>LookupVariable.replace("'", "")</code> ) but I was wondering if there was a more pythonic way of doing this.</p>

<p>Thanks.</p>
