im following along in this nifty little book and one of the coding examples just sparked my interest.
data = open('some_file.txt')
for each_line in data:
print(each_line)
How does python know what i want it to do without really telling it?
i figured i would have to tell it how i wanted it to print the lines, like parse through each line of the file or something. But it just prints out each line. Like it knew that when i called my variable each_line it understood
so what am i missing? am i over thinking this?