Function Details: isnumeric

Description


Return True if all characters in the string are numeric characters, and there is at least one character, False otherwise.


Extended Description


The isnumeric() method checks if all the characters in the string are numeric characters. This includes digits, numeric characters from various Unicode sets, and characters that have the Unicode numeric value property. It's more inclusive than isdigit() and isdecimal().


Read More about isnumeric from Python Documentation

Function Signature



Module: builtins

Class: str

Parameters



Return


Returns a boolean indicating whether all characters in the string are numeric.


Return Type


bool

Output

Explanation

This example demonstrates the basic usage of isnumeric(). It returns True because all characters are numeric.