For example
l1= [1,2,3,4,5]
i_l1 = iter(list)
what did the iter() function do to l1 that made i_l1 an iterator? can someone provide the source code for iter() function? Also how does the next method magically appeared in the i_l1 directory after passing l1 as an argument to iter() funtion?