I'm not sure what's happening here. Today is my first foray into the world of generators. I put this into the pythontutor visualizer but I'm not understanding why this is happening. The visualizer spits out "generator return instance". I've read the other SO threads that are similar to mine though I'm unfortunately not understanding why this is. In addition to this specific issue I'd greatly appreciate any thoughts on great ways to learn to use generators correctly and efficiently. Thank you!
def even(nums):
for number in nums:
if number % 2 == 0:
yield number
def find_evens(number_list):
return even(number_list)
>>> find_evens([1,2,3,4,5,6])
<generator object even at 0x104f7af10>