-2

i wrote following code but during run its gives name error in 'raw_input' please help me to out of this

my code is:fname = raw_input('enter a file name: ') print (fname)

Error is= name error:name 'raw_input'is not define

psw
  • 45
  • 1
  • 9

1 Answers1

0

raw_input on python 3+ is now just input()

fname = input('Enter a file name: ')
print(fname)
elmuscovado
  • 114
  • 3
  • 6
  • 13