[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Implementing C++'s getch() in Python

On Sat, 25 May 2019 at 4:43 PM <binoythomas1108 at> wrote:

> I'm working on Python 3.7 under Windows. I need a way to input characters
> without echoing them on screen, something that getch() did effectively in
> C++.

try getpass module.
Typically this would be,

import getpass
variable = getpass.getpass('your prompt')

Sent from Shakti?s iPhone