Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

isnumeric python

a = "u0030" #unicode for 0
b = "u00B2" #unicode for ²
c = "10km2"
d = "-1"
e = "1.5"

print(a.isnumeric()) #True
print(b.isnumeric()) #True
print(c.isnumeric()) #False
print(d.isnumeric()) #False
print(e.isnumeric()) #False
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #isnumeric #python
ADD COMMENT
Topic
Name
1+2 =