Add elements dynamically to an initially empty list recursively

Please show how you load and run your code, what you expect to see, and what you get instead. Explain how what you expect is different from what you get.

When you find a moment, you might want to check out this very nice article:

“How to create a Minimal, Reproducible example”. Obviously we are not at Stackoverflow but the article is helpful in many contexts.