Is String The Number

Is String The Number

The mission is in Blocked Mode. Access to the solutions is blocked for a day or two (even after you share your own), until we'll have enough solutions for you to check. All users who've solved the mission will get the notifications about their opening.

Check if the input string is a number

example

Input: A string.

Output: A bool.

Example:

is_number("df") == False
is_number("34") == True

How it’s used: (For checking values that must contain only digits)

Precondition: The text can contain letters and digits.