5th Aug 2020, 11:59 AM
Abhinraj
7 Respuestas
+ 1
because there is no return for the lists function
5th Aug 2020, 12:06 PM
M. M. H.
M. M. H. - avatar
+ 1
oh i got it. the execution timed out. it never stopes the while loop in the lists function
5th Aug 2020, 12:12 PM
M. M. H.
M. M. H. - avatar
+ 1
its true. the yield returns the value when the function stops. because the function never stopes, it never gives an output. look at this: (its your own code with a print(num) ) https://code.sololearn.com/cZsDtiv6BB4a/?ref=app
5th Aug 2020, 12:14 PM
M. M. H.
M. M. H. - avatar
+ 1
difference between yield and return is that yield returns the values when the function stops. but return , stopes the function and returns the value
5th Aug 2020, 12:16 PM
M. M. H.
M. M. H. - avatar
+ 1
yw man. happy to help 😊😊
5th Aug 2020, 12:56 PM
M. M. H.
M. M. H. - avatar
0
but there is yield
5th Aug 2020, 12:06 PM
Abhinraj
0
got it bro.thanks😊
5th Aug 2020, 12:53 PM
Abhinraj