adding an element at specified index

Sai_kiran_rachakonda · November 01, 2022
list1 = [10, 20, [300, 400, [5000, 6000], 500], 30, 40]
list1[2][2].append(7000)
print(list1)
Output

Comments

Please sign up or log in to contribute to the discussion.