Copyright © tutorialspoint.com

# Python String isnumeric() Method

## Description:

This method checks whether the string consists of only numeric characters. This method are present only on unicode objects.

Note: To define a string as Unicode, one simply prefixes a 'u' to the opening quotation mark of the assignment. Below is the example.

## Syntax:

    str.isnumeric()

## Parameters:

Here is the detail of parameters:

- NA

## Return Value:

It return true if all characters in the string are numeric, false otherwise.

## Example:

    #!/usr/bin/python

    str = u"this2009";
    print str.isnumeric();

    str = u"23443434";
    print str.isnumeric();

This will produce following result:

    False
    True

Copyright © tutorialspoint.com