I am writing some code and need the user to input a file for use in the program:
file=input('input file name')
however, whenever you then input a file name (or anything for that matter) an error pops up saything that whatever has just been input is not defined and ends the program. What is causing this to happen?
Thanks
This is important:
Input will try to
evalyour inputCheck this
using
raw_inputhas it’s disadvantages though.