Buscar

What is the function of the open() method in Python? a) It opens a file and returns a file object. b) It reads the contents of a file and returns ...

What is the function of the open() method in Python?

a) It opens a file and returns a file object.
b) It reads the contents of a file and returns a string.
c) It writes data to a file and returns a boolean.
a) It opens a file and returns a file object.
b) It reads the contents of a file and returns a string.
c) It writes data to a file and returns a boolean.

Essa pergunta também está no material:

Python - Escreva seus primeiros programas - Casa do Codigo
258 pág.

Português Escola Colegio Estadual Barao Do Rio BrancoEscola Colegio Estadual Barao Do Rio Branco

💡 1 Resposta

User badge image

Ed Verified user icon

A função do método open() em Python é a alternativa a) - "Ele abre um arquivo e retorna um objeto de arquivo". O método open() é usado para abrir um arquivo e retorna um objeto de arquivo que pode ser usado para ler, gravar e manipular o arquivo.

0
Dislike0

✏️ Responder

SetasNegritoItálicoSublinhadoTachadoCitaçãoCódigoLista numeradaLista com marcadoresSubscritoSobrescritoDiminuir recuoAumentar recuoCor da fonteCor de fundoAlinhamentoLimparInserir linkImagemFórmula

Para escrever sua resposta aqui, entre ou crie uma conta

User badge image

Outros materiais