Name file is not defined python. Nameerror python. name is not defined python. name 'a' is not defined. nameerror("name 'привет' is not defined").