isnumeric() in python code example
Example 1: isnumeric python
str.isnumeric()
str = u"this2009";
print str.isnumeric()
> False
str = u"23443434";
print str.isnumeric()
> True
Example 2: isnumeric() in python
number = "34e.l5p#"
separators = ""
for char in name:
if name.isnumeric():
separators = separators + char
print(separators) # .isnumeric() only prints the separators of the name(4.#)