I am a beginner in python and i am here confused why sum function isn't working on adding array elements here is the code below `from future
inc = 0
array = []
i=0
while True:
rating=input("Enter your rate between (1 to 5) ")
inc += 1
array.insert(inc,rating)
length = len(array)
print('total number of rating:',length)
ans = sum(array)
average = ans/length
print('avrage ratiing',round(average, 1))
while i<length:
print(array)
break`
please help