How i over come with name error in python : <p>i wrote following code but during run its gives name error in 'raw_input' please help me to out of this</p>

<p>my code is:<code>fname = raw_input('enter a file name: ')
            print (fname)</code></p>

<p>Error is= name error:name 'raw_input'is not define</p>
