Convert circle to Spiral

It’s understood that a 360 angle forms a circle. Therefore, the line


forms a circle. Now that we’ve cleared that up, I want to take this circle and convert it into a infinite spiral that goes up and down and connects with itself. Unfortunately, I have no idea how to achieve this. A thought I had was to have multiple circles that are overlapping but each one is rotated slightly downward, and in the opposite direction than the last. This would in theory create a spiral, if you were to remove the outer edges that are not within the overlap. As i said that, I cannot think of how to do this through code. I am hoping that someone could help me out in solving this issue. If you have any ideas, please let me know. All help is appreciated!

If you create a loop for the number of circles you wish to use and create a circle for each step changing its rotation by changing one of its axis (x,y or z) and changing that amount for each step you should get something like what you want.
Give it a go and share your code.