Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def mean(li):
- x = sum(li)
- x = float(x)
- z = len(li)
- z = float(z)
- return x/z
- print ("Enter how many elements do you want to enter?")
- n = int(raw_input())
- ls = [int(i) for i in raw_input().split()]
- print(ls)
- print (' '.join(str(x) for x in ls))
- ans = mean(ls)
- print(ans)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement