DefaultDict Tutorial

  • + 2 comments

    what dose "defaultdict(list)" mean? Why not set the default value with "-1",so there is no need to decide whether i is in list1