how to use a function to find the total in spyder python code example Example: how to use a function to find the total in spyder python toata1= sum(total) print("total1")