+ 1

I am unable to understand this: def fun(egg) if len(egg): yield egg[-1] yield from fun(egg[:-1]) Print(".join(fun("stressed"))

https://code.sololearn.com/cfEeGt8ovp8G/?ref=app

8th May 2018, 1:52 PM
Auro archit Mishra
Auro archit Mishra - avatar
2 Antworten
0
i was asked this in a challenge
8th May 2018, 2:27 PM
Auro archit Mishra
Auro archit Mishra - avatar
0
in sololearn
8th May 2018, 2:30 PM
Auro archit Mishra
Auro archit Mishra - avatar