I am learning about variables in the m001 course. So I tried a few commands using variables.
But the variable (document) is printing only once. After some searching on the internet, I found this.
find() is a cursor, It can hold the variable only once.
This might be known to all. But as a beginner, I struggled for a while. I hope this helps beginners like me.