def avg(x): return sum(x)/len(x) z=avg([1,2,3])print(z)
Standard input is empty
2.0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!