I am trying to set a dictionary for the staff's salary in Python.  I want to create two functions, getname() and getsalary() so I tried:  
empDic={}
def setname(n):
empDic={'n':''}
And then in python interactive 2.7 I typed:
>>>setname('marson')
>>>print empDic
{}
The result is still an empty dictionary, How can I deal with that?
 
     
    