how to return a dictionary key as a string value Python
<p>I'm a beginner programmer and I have a question. I need to return a key value as a string in a dictionary.</p>

<pre><code>choice = skills[(input('which attribute would you like to access: '))]
print('Testing, choice was in word')
user = None
while user != 0:
    print('\nyour current', choice[0] ,' skill is:', choice,)
    print('you also have', XP,'XP points left to distribute')
    print('''\nWould you like to Add or take away points
0. Go back
1. Add
2. Take away''')
</code></pre>

<p>Right where <code>choice[0]</code> I want the program to return the key value to the dictionary. and then after it says <code>'skill is: '</code>, choice,) is where it returns the value of that key.</p>

<p>I want to be able to just display the key as a string value for easy access in the program. </p>

<p>So for instance if the key is "X" and the value is "x" I want the program to spit out.</p>

<pre><code>'your current X skill is x' 
</code></pre>

<p>so far the end of the print function works fine. </p>