Answers for "how to check if the string is negative number in python"

0

python check string for negative number

I = input("Enter a number: ")

if I.lstrip('-').isnumeric():
  # ACTION HERE
  # I IS A NUMBER
Posted by: Guest on October-09-2021

Code answers related to "how to check if the string is negative number in python"

Python Answers by Framework

Browse Popular Code Answers by Language