Write a Python program to calculate the sum of a list of numbers code example Example: python sum of list >>> list = [1, 2, 3] >>> sum(list) 6