I am a relatively inexperienced coder so please excuse my ignorance.
I am attempting to write a code to iterate rotations of functional groups in a molecule.
The number of groups that need to rotate and the step size is based on user input.
I know i can generate the iterations using a series of nested for loops
for i in [120,240,360]: for j in [60,120,180]: print str(i) + '.' + str(j)
My question is how do do this dynamically
The information about the rotations is stored in an array
rotationarray[rotation] contains the whole rotation range and
rotationarray[rotation] contains the step size
rotationarray = [[2,8,1,360,120,True],[3,9,1,180,60,True]]
My guess is this could be solved something like this but I keep running into a wall in my logic and I was hoping someone could give me a little help
itteration() some sort of class for rotations itteration()