t337.py 264 B

123456789101112131415161718192021
  1. l = list()
  2. print l
  3. l.append(1)
  4. print l
  5. d = dict()
  6. print d
  7. d["zap"] = 1
  8. print d
  9. # Make sure this still works
  10. l2 = list(l)
  11. print l2
  12. l3 = list(d)
  13. print l3
  14. # It would be nice to make this work
  15. # But that would be a separate issue
  16. # d2 = dict(d.items())
  17. # print d2