Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Python: Picking out part of list

📅 2009-Oct-09 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ lists, python ⬩ 📚 Archive

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


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧