Test If Variable Is Numeric In Python Iteration