# python add up values in list

```a = range(10)
# [0,1,2,3,4,5,6,7,8,9]
b = sum(a)
print b
# Prints 45```

Here is what the above code is Doing:
1. We create a list called a.
2. We use the sum function to add up all the values in the list.
3. We print the result.

You can use the sum function on any iterable, not just lists.

Instructions
1.
Use the sum function to add up all the values in the list, and print the result.

2.
Use the sum function to add up all the values in the tuple, and print the result.

3.
Use the sum function to add up all the values in the dictionary, and print the result.

4.
Use the sum function to add up all the values in the set, and print the result.

5.
Use the sum function to add up all the values in the list of lists, and print the result.

6.
Use the sum function to add up all the values in the list of tuples, and print the result.

7.
Use the sum function to add up all the values in the list of dictionaries, and print the result.

8.
Use the sum function to add up all the values in the list of sets, and print the result.

9.
Use the sum function to add up all the values in the nested list, and print the result.

10.
Use the sum function to add up all the values in the nested tuple, and print the result.

11.
Use the sum function to add up all the values in the nested dictionary, and print the result.

12.
Use the sum function to add up all the values in the nested set, and print the result.

13.
Use the sum function to add up all the values in the nested list of lists, and print the result.

14.
Use the sum function to add up all the values in the nested list of tuples, and print the result.

15.
Use the sum function to add up all the values in the nested list of dictionaries, and print the result.

16.
Use the sum function to add up all the values in the nested list of sets, and print the result.

17.
Use the sum function to add up all the values in the nested tuple of lists, and print the result.

18.
Use the sum