Y 0 came in output as I >0 | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
23rd Sep 2022, 3:52 PM
chetan kumar
chetan kumar - avatar
1 Réponse
0
It includes 0 as you decrease i before yield. Compare: i -= 1 yield i vs yield i i -= 1
23rd Sep 2022, 4:21 PM
Lisa
Lisa - avatar