I have read about "in" function so it can check if that value is in another variables or not like "hello" in my_str or 1 in number
and it will return two values true or false. but when I use it with "for" function why it puts values from list into variables instead of return true or false like
for a in [1,2,3,4,5]:
print(a)
so I get 1,2,3,4,5 instead of true or false. how does this function actually work?
and it will return two values true or false. but when I use it with "for" function why it puts values from list into variables instead of return true or false like
for a in [1,2,3,4,5]:
print(a)
so I get 1,2,3,4,5 instead of true or false. how does this function actually work?