Is there a way to return a dictionary value without quotations?
<p>Sorry if this is somewhere out there but I just couldn't find a solution to what I was looking for. I want to return the value of my dictionary without the quotations and can't figure out what I'm doing wrong.</p>

<pre><code>def read_wiktionary():
 answer = dict()
 f = open('wiktionary.txt', 'r')
 for line in f:
      word,value = line.rstrip('\n').split(' ')
      answer[word] = (value)
 return answer
</code></pre>

<p>The quotation is just used as a separator between different keys and values so it cannot be removed.The quotation doesn't affect your values in the dictionary.</p>

python dictionary return