why doesn't this piece of code work... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why doesn't this piece of code work...

I'm trying to iterate through the list but I get no output https://code.sololearn.com/c3r8VFqfF0ar/?ref=app

18th Feb 2021, 12:17 PM
Sheldon 10110
Sheldon 10110 - avatar
2 Answers
+ 1
aaah darn thanks... it works now
18th Feb 2021, 5:18 PM
Sheldon 10110
Sheldon 10110 - avatar
0
You have wrong condition i<=0 . It should be >=
18th Feb 2021, 12:33 PM
Jayakrishna 🇮🇳