title: a script to print values
body: <p>i am trying to make a script that will take user input and print values, specifically, take a function as raw_input, and print the key in the dictionary when it is entered. I've tried to make it work a few ways, but I can't seem to get it down. I've asked a few questions on the forum the last few days and just to reiterate I'm now 4 days old in python years. can someone give me a pointer?</p>
  
  <pre><code>#dictionary of categories and their items
  functions = {
  'Absolute Value':{
  'abs': 'syntax: abs(number), use:The abs function is used to determine the absolute  value 
  }
  'Round':{
  'ro':'syntax: round(number), use: The round function is used to round a number down.'
  }
  
  #ask user for input as to which function they want
  fnct=raw_input('Choose a function: abs, ro:')
  
  #if a user chooses a function, map it to this key
  if fnct=='abs':key='abs'
  if fnct=='ro' :key='ro'
  
  #if a user chooses a function, use the mapped key to print the key value
  if fnct=='abs':print 'abs'
  if fnct=='ro':print 'ro'
  </code></pre>
  
  <p>thanks in advance</p>