Answers for "get numbers from string python including negatives"

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 "get numbers from string python including negatives"

Python Answers by Framework

Browse Popular Code Answers by Language