ItIs
Tools for determining something.
The module contains the following functions:
is_number- Check if a string is a number.is_palindrome- Check if a string is a palindrome.
is_number(value)
¶
Check if a string is a number.
Only decimal numbers.
Examples:
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str
|
Some kind of string. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True, if the string is a number. |
Source code in src/xloft/itis.py
is_palindrome(value)
¶
Check if a string is a palindrome.
Examples:
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str
|
Alpha-numeric string. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
Boolean value. |