subject=['Eng','Bio','Mth','Chem','phy']
total=[]
average=0
for item in subject:
item=int(input('Enter score:'))
total.append(item)
average=float(total/5)
print(item)
print(sum(total))
print(average)
Output:
average=float(total/5) TypeError: unsupported operand type(s) for /: 'list' and 'int'