Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Python: Picking out part of list

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

alist = [10, 11, 12, 13, 14, 15, 16, 17, 18, 19] alist[2:6] # [12, 13, 14, 15]