• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • Teams
Menu
0

Y 0 came in output as I >0

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

@sololearn
23rd Sep 2022, 3:52 PM
chetan kumar
chetan kumar - avatar
1 Antwort
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

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
My codebits section is full of deleted codes
12 Votes
Ai generated practices
1 Votes
Why so many mathematical questions in challenges?
0 Votes
Where did mess up....
1 Votes
I have an error in a problem and I don't know what the correct answer is
1 Votes
Feedback on my portfolio
0 Votes
I need a siren sound
0 Votes
Yo this is madness
0 Votes
How can i insert files?
1 Votes
Patters of library class
0 Votes