tags:

views:

46

answers:

2

when i input some texts/strings, i want them to appear either as hidden or with some special characters(as we do while entering password). . . how can i implement it in a python program? pls help me.

+4  A: 

Use getpass

import getpass
getpass.getpass()
Amit Kumar
A: 

You want the getpass module.

Ignacio Vazquez-Abrams