Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Python: Deleting list element by its index

📅 2009-Oct-01 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

aList = [10, 11, 12, 13, 14, 15] del aList[2] # [10, 11, 13, 14, 15]