Imagem de fundo

Assinale o código Python que cria um novo arquivo, contendo uma linha.

Assinale o código Python que cria um novo arquivo, contendo uma linha.

A

f = open("teste.txt","w")

f.write("Linha de teste\n")

f.close()

B

f = new file

f.open("teste.txt")

f.write("Linha de teste" + “\n”)

f.quit()

C

f = create_file("teste.txt")

write(f, "Linha de teste" + “\n”)

close(f)

D

f = system.file.io("teste.txt","output")

write(f, "Linha de teste\n")

quit(f)

E

f = textfile.new(“teste”)

f.write("Linha de teste" + “\n”)

f.save()