[Solved] How to add items to dictionary in a for loop in Python?
[ad_1] A dictionary is a mapping from a key to a value. You need to provide a value, at the very least something that signifies ‘no value’: tag_dic[i] = None 1 [ad_2] solved How to add items to dictionary in a for loop in Python?