I'm new to py and ran into an unexpected behavior :
tracker = Dict[int, List[int]]
tracker.update({1: {1,2,3}})
tracker.update({2: {4,5,6}})
tracker.update({3: {7,8,9}})
for key in tracker:
print(key)
stdout:
*typing.Dict[int, typing.List[int]]
I was expecting this output :
1
2
3
Can someone explain this behavior, and also describe how to iterate and print the dict keys ?