'''lecture_18_copying_sublists.py Explore issues involved in copying sublists Oliver W. Layton CS 151: Computational Thinking: Visual Media Fall 2020 ''' # 1) Explore copying middle row then changing an item in the copy digits = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] # print(digits) # print(middleRow) # 2) Explore copying 1st two rows then modifying the copy digits = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] # print(firstTwo) # print(digits) # print(firstTwo) # 3) Access single int, then change it digits = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] # print(theFour) # print(digits) # print(theFour) # 4) Access a list of basic types, but not one of the original sublists # e.g. the 1st two ints in the first sublist digits = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] # print(slice) # print(digits) # print(slice) # 5) Access a list with a sublist of 3 turtle objects and another with 1 turtle object. # Slice the 1st two ints in the first sublist