| 1 | initial version |
Your loop for factor in factors: assigns an integer value to factor object. So, you cannot call factor(p-1) afterwards.
A simply fix is to give the loop variable another name - e.g. for myfactor in factors:
| 2 | No.2 Revision |
Your loop for factor in factors: assigns an integer value to factor object. So, you cannot call factor(p-1) afterwards.
A simply simple fix is to give the loop variable another name - e.g. for myfactor in factors:
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.