python lists practice code example
Example 1: Sample Input: ['a', 'b', ['c', ['d', 'e', ['f', 'g', 'h', 'i', 'j'], 'k'], 'l'], 'm', 'n'] Sample Output: [['c', ['d', 'e', ['f', 'g', 'h', 'i', 'j'], 'k'], 'l']]
print['a', 'b', ['c', ['d', 'e', ['f', 'g', 'h', 'i', 'j'], 'k'], 'l'], 'm', 'n']
Example 2: first_list = [10,20,30,40] second list = first list second list[3]=400
aList = [1, 2, 3, 4, 5, 6, 7]