sensortoolkit.lib_utils._input_tools.validate_entry

validate_entry(statement='Confirm entry', indent_statement=0)[source]

Ask the user to confirm an entry by typing ‘y’ (yes) or ‘n’ (no).

Parameters

indent_statement (int, optional) – Optional argument for indenting the printed statement (useful for setup module where indenting indicates subsection). Defaults to 0 (no indent).

Returns

The user’s input choice, either ‘y’ or ‘n’.

Return type

val (str)