Need some help understanding.
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:
k is being defined in the for loop. for k in d.keys() means k is assigned to the value of d.keys() for every single key in the d dictionary. Output of that should be something like "one 1 two 2.." etc.
|All times are GMT +1. The time now is 02:44 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.