When a program uses the input() function the shell does not allow the input. It works if a program is not running and you just type the code into the REPL.