Mesmo o instrutor fazendo alterações, o nome continua a ter o NameError.
$ python principal.py
Traceback (most recent call last):
File "principal.py", line 2, in <module>
arquivo_contatos = open('dados/nao_existe.csv', mode='W+')
ValueError: invalid mode: 'W+'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "principal.py", line 11, in <module>
arquivo_contatos.close()
NameError: name 'arquivo_contatos' is not defined