Posts by Pisadiasi • 1 point
2 posts
-
0
votes1
answer3879
viewsQ: How do I determine a square matrix in python?
My file is like this: arq = open('matriz.txt', 'r') texto = [] matriz = [] texto = arq.readlines() for i in range(len(texto)): matriz.append(texto[i].split()) for i in range(len(texto)):…
-
-1
votes2
answers74
viewsQ: How do I find the largest number read and the smallest number read?
How do I find the largest number read and the smallest number read? I tried the max and the min and it didn’t work. arquivo = open('notas_alunos.txt', 'r') lista_notas = [] conteudo =…
python-3.xasked Pisadiasi 1