Calculate the mean and standard deviation of a list in txt

Asked

Viewed 16 times

-4

I need to calculate the mean and standard deviation for each line of the file "numeros1.txt". In the picture I was able to calculate for the first line, and I need a loop of repetition to do for the others, does anyone know how I could do that? inserir a descrição da imagem aqui

I tried that way but it was wrong:

for i in text: numbers = text[i]. split(',')

  • Hello, could you put your code inside the question, textual? It is not necessary to remove the image, but it is important to have the essential parts of your source code in the body of the question. Learn why it’s not cool to put pictures in questions Post Error Message as Picture. One of the reasons is that if someone wants to answer the question, they cannot copy and execute their code. Images do not play well in search engines because content cannot be indexed.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.