Moving Average by twobit

s=[]
while 1:a=raw_input();s=[eval(a[7:])]+s[:4];print a,"Average: %.1f"%(sum(s)/len(s))

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page