Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- with open("numbers") as inp:
- with open("mean", "w") as out:
- m = np.fromiter(map(float, inp), dtype=np.float).mean()
- print(m, file=out)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement