tasks module
Command-line tools to facilitate the development of NumS.
-
tasks.
accepts
(message)[source] Ask the user to respond ‘y’ or ‘n’ to the specified prompt.
If the user supplies an invalid response (i.e., neither ‘y’ or ‘n’), then the user is re-asked the question.
- Parameters
message (
str
) – The question to ask the user.- Return type
bool
- Returns
True if the user responds ‘y’ and false if the user responds ‘n’.