I just started learning python 3 a week ago and have come by this snippet in my learning and cannot understand where the 'K' object comes from as it hasn't been defined. In the tutorial it doesn't explain this. I know this might seem like a dumb question but i really would like to know what's going on:
d = dict(
one = 1, two = 2, three = 3, four = 4, five = 5
d['seven'] = 7
for k in sorted(d.keys()):
if __name__ == "__main__": main()
Hope someone can explain it simply, ty.