Recursion, environment

Hi @Kopasasd! Welcome!

Is your question related to work you are doing for a course or training? If so, please take a look at this FAQ and make sure you're following our policies for such questions:

Either way, I think it will help if you can show some of the code you've tried so far. There are a lot of different things going on in your question, and people will be able to help best if they can see exactly where you're getting stuck.