i am assuming that when the input is zero then it is query asking for mean and std dev till that point and consecutive two zeros when we want to end the process
sum1 = 0
sum2 = 0
count = 0
x = int(input())
while x!= 0:
num = x
while num!= 0:
sum2 = sum2 + num2
sum1 = sum1 +num
num = int(input())
count = count+1
mean1 = sum1/count
mean2 = sum2/count
dev = np.sqrt(mean2 - mean12)
print(mean1)
print(dev)
x = int(input())
error:
1 2 0 0
ValueError Traceback (most recent call last)
in
2 sum2 = 0
3 count = 0
----> 4 x = int(input())
5 while x!= 0:
6 num = x
ValueError: invalid literal for int() with base 10: ‘1 2 0 0’