Pessoal, me enrolei toda na criação do arquivo... está dando erro quando tento ler o conteúdo. Alguém pode me dar um help?
C:\Users\Ana Carolina>python
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> arquivo.open("palavras.txt","r")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'arquivo' is not defined
>>> arquivo.open("palavras.txt","w")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'arquivo' is not defined
>>> arquivo
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'arquivo' is not defined
>>>