Ask coding questions

← Back to all posts
Wut's wrong with my codee!
LegendaryWolf (686)

pls can someone tell wut's wrong with code?

Answered by OldWizard209 (1093) [earned 5 cycles]
View Answer
Comments
hotnewtop
OldWizard209 (1093)

@LegendaryAlpha The problem is because you are putting the list in the while loop and in the function. So even if you append anything to the list, it resets it back to the original. Put the list outside the function and globalize it in the search() function.

PS: Sry for the accusations of the alt accounts....