Answers for "str.isnumeric python"

5

isnumeric python

str.isnumeric()
str = u"this2009";  
print str.isnumeric()
> False
str = u"23443434";
print str.isnumeric()
> True
Posted by: Guest on February-03-2020
0

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
Posted by: Guest on November-07-2021

Python Answers by Framework

Browse Popular Code Answers by Language