mypackage.subpackage2.module2 module#
- mypackage.subpackage2.module2.str_to_int(input: str) int #
Convert string to integer.
This function converts a string to an integer. The passed in string must represent a valid integer value.
- Parameters:
input (str) – the string literal to be converted to integer
- Returns:
the resulting integer
- Return type:
int
- Raises:
ValueError – if conversion to integer is not possible, i.e. the string literal does not represent a valid integer number.