✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Considere o seguinte exemplo, escrito na linguagem Python:
lerFicheiro = open(‘teste.dat’, ‘r’)while True: linha = lerFicheiro.readlines() print(linha) if not linha breaklerFicheiro.close()
Para o programa funcionar corretamente, a instrução
linha = lerFicheiro.readlines()
deveria ter sido escrita da seguinte forma:
linha = lerFicheiro.readline()
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!