Not surprisingly, some of my functions are complicated (a score of greater than 10 is frowned upon) $ python -m mccabe --min 9 interactive_user_prompt.py | wc -l 15 $ python -m mccabe --min 15 interactive_user_prompt.py | wc -l 4
So 15 functions scored 9 or greater; 4 functions were 15 or higher!
That's out of 50 functions and 1946 lines of Python (including comments and blank lines)
$ cat interactive_user_prompt.py | wc -l
Although I'm not concerned about security of a locally run Python script, I also tried bandit: $ bandit -r interactive_user_prompt.py
which complained about my use of the shell.