statistics was new in version 3.4.
So use Python 3.6, Win, Linux.
There are several problem with that code.
No need to use Numpy,if use statistics.
Numpy has own statistics.
Need to convert to integers.
So use Python 3.6, Win, Linux.
There are several problem with that code.
No need to use Numpy,if use statistics.
Numpy has own statistics.
Need to convert to integers.
import statistics rawstr1 = input("type a 4-list of integers: ") rawstr2 = input("type a 4-list of integers: ") ival1 = [int(i) for i in list(rawstr1)] ival2 = [int(i) for i in list(rawstr2)] print(statistics.stdev(ival1 + ival2))
Output:E:\1py_div\div_code
λ python num.py
type a 4-list of integers: 1234
type a 4-list of integers: 4567
2.0