[Python] Overwrite Built-In Function input() to submit with SPACEBAR

Discussão em 'Python' iniciado por Stack, Agosto 27, 2025.

  1. Stack

    Stack Membro Participativo

    Python's input() method prompts the user to enter a string in the terminal. They submit the string with ENTER key.

    I would like to overwrite the input() method and replace the key from ENTER to SPACEBAR.

    How do I do that?

    Thank you

    Continue reading...

Compartilhe esta Página