""" Darin Brezeale 9/12/10 demonstrate various list methods """ data = [78, -13, 4, 99, 10] print(" first: ", data) data.append(2000) # add an element to the end print(" second: ", data) data.pop() # remove an element from the end print(" third: ", data) data.pop(2) # remove the element with the index 2 print(" fourth: ", data) data.insert(1, 22) # insert 22 at subscript 1 print(" fifth: ", data) data.reverse() # reverse the list print(" sixth: ", data) data.sort() # sort the list print("seventh: ", data) """ output first: [78, -13, 4, 99, 10] second: [78, -13, 4, 99, 10, 2000] third: [78, -13, 4, 99, 10] fourth: [78, -13, 99, 10] fifth: [78, 22, -13, 99, 10] sixth: [10, 99, -13, 22, 78] seventh: [-13, 10, 22, 78, 99] """