The method isdecimal() checks whether the string consists of only decimal characters. This method are present only on unicode objects.
NA
str.isdecimal()
#!/usr/bin/python str = u"this2009"; print str.isdecimal(); str = u"23443434"; print str.isdecimal();
When we run above program, it produces following result −
False True