• + 0 comments

    using len(i) is unnecessary and adds more computation per iteration. simply use alreday known value of x

    print(sum(i)/ x)