pimento[w05]$ python3 Python 3.6.5 (default, Apr 1 2018, 05:46:30) [GCC 7.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> a = [] >>> a [] >>> b = [1,2,3,4] >>> b [1, 2, 3, 4] >>> c = [5,6] >>> c [5, 6] >>> b + c [1, 2, 3, 4, 5, 6] >>> b * 2 [1, 2, 3, 4, 1, 2, 3, 4] >>> b[0] 1 >>> b[1] 2 >>> len(b) 4 >>> a [] >>> for i in range(4): ... a.append(i) ... >>> a [0, 1, 2, 3] >>> b [1, 2, 3, 4] >>> c [5, 6] >>> b+c [1, 2, 3, 4, 5, 6] >>> a[1:2] [1] >>> a[1:3] [1, 2] >>> a[1:len(a)] [1, 2, 3] >>> range(10) range(0, 10) >>> list(range(10)) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> pimento[w05]$ python addVal.py [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] 0 1 2 3 4 5 6 7 8 9 pimento[w05]$ python3 Python 3.6.5 (default, Apr 1 2018, 05:46:30) [GCC 7.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> a = list(range(5)) >>> a [0, 1, 2, 3, 4] >>> a[2] = 10 >>> a [0, 1, 10, 3, 4] >>>