Popular recipes by Francesco Ricciardi http://code.activestate.com/recipes/users/2020988/2004-09-05T06:50:04-07:00ActiveState Code RecipesCheck that a string represents an integer number (Python) 2004-09-05T06:50:04-07:00Francesco Ricciardihttp://code.activestate.com/recipes/users/2020988/http://code.activestate.com/recipes/303495-check-that-a-string-represents-an-integer-number/ <p style="color: grey"> Python recipe 303495 by <a href="/recipes/users/2020988/">Francesco Ricciardi</a> (<a href="/recipes/tags/text/">text</a>). </p> <p>Many times I needed to check if a string represented a number or not. This is a very short recipe that uses Python int() function to do the check, instead of looping on the single characters.</p>