Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Python: Creating empty list, tuple, set & dict

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

alist = [] atuple = () aset = set()  # Sadly, no literal for sets! adict = {}