I m new to python and based on what I learnt so far this code should be correct,but it doesn't run.Can any of you help out
list_x=[4,5,6,7]
total1=0
def total(list_1):
for values in list_1:
total1 += values
print(total1)
total(list_x)