def avg(lst): average= float(sum(lst))/len(lst) return average res=0 nums=[1,1,1,1] res=float(sum(nums))/len(nums) print(res)