My code isn't being expressed in the output

Bug description: I enter code which saves but when run it does not express it properly but instead runs a code I had previously.

Expected vs Current Behavior:

Bug appears at this link: https://replit.com/@IslaRacine/Final-Project-test

Browser/OS/Device: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36

Replit Profile: https://replit.com/@IslaRacine

Hi @IslaRacine , welcome to the forums!
Could you try entering kill 1 in the Shell? Or try pressing CTRL+SHIFT+R to refresh the page and cache?
Hope this helps!

Hello,
the reason why this is happening is because earlier in your code, you call the function pail() before you call your new function planta().
Since there is turtle.done() at the end of the pail() function, the output stays stuck on the pail (so planta doesn’t get displayed.)

Remove or comment out the call to pail(). I’d also recommend to keep all of the calls to these functions at the end of the program for clarity and organization.

2 Likes