Implementing C++'s getch() in Python

Shakti Kumar shakti.shrivastava13 at gmail.com
Sat May 25 07:27:15 EDT 2019


On Sat, 25 May 2019 at 4:43 PM <binoythomas1108 at gmail.com> 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')


> https://mail.python.org/mailman/listinfo/python-list
>
-- 
Sent from Shakti’s iPhone



More information about the Python-list mailing list