On Fri, Jun 20, 2014 at 12:14 AM, Nicholas Cannon <nicholascann...@gmail.com> wrote: > Guys i am only a beginner at python most of the stuff you are saying i need > to do i dont understand.
All we're saying is that the simplest and most accurate way to determine whether a string can be converted to an int or a float is to try converting it and see if it succeeds. If it fails, it will raise an exception that you can catch using the try-except syntax. Here's what your checkint function might look like: def checkint(a): try: int(a) except ValueError: return False else: return True -- https://mail.python.org/mailman/listinfo/python-list