I want to understand why does this function print "None" at the end, even if the dictionary has only 3 keys.
def groups(group_dictionary):
i = 0
for group in group_dictionary:
print(group)
print(i)
i = i+1
print(groups({"local": ["admin", "userA"], "public": ["admin", "userB"], "administrator": ["admin"]}))
Output:
local
0
public
1
administrator
2
None #I don't understand this line
Thank you