Answers for "como saber si un string es un numero python"

0

como saber si un string es un numero python

def if_integer(string):
  
    if string[0] == ('-', '+'):
        return string[1:].isdigit()

    else:
        return string.isdigit()
Posted by: Guest on April-26-2022

Code answers related to "como saber si un string es un numero python"

Python Answers by Framework

Browse Popular Code Answers by Language