"if numbering" instead of testing explicitly that it equals the numerical value 1; you want to test whether the thing passed for numbering evaluates to True, not whether or not it is equal to 1.