Python to show one of objects by choosing
If you show some object (a torus) by user action it seems like a [game] description.  You may want to search Blenders game engine or some other game engine.
The 
hide_render and hide Python attributes, the eye and the camera icon in the outliner window
can be set to True or False to assist you in your goal.  Or you may insert keyframes or individual as scripts opposed to frame change handlers.





BSE Link Show and Hide child objects along with Parent
Your code in your question may benefit by placing all the items in a (group) which can source of an iteration in Python (for loop) and used with other ideas later in this proposed answer.  A small number of copy/paste actions can be done manually with regard to your patience.
If you want to an animation with no user control I suggest you see the topic of [particles].  Particles have location and render visibility which may interest you or allow you to think about your task differently.  You may employ 1 or more Particle Modifiers.
If you do not want to use particles then with a script I suggest you use a frame change handler.
Please search
frame_change_post and
frame_change_pre 


and modify the render visibility to True or False.

This proposed answer are high level remarks to guide you in the correct direction and (not) a tutorial.