Ask coding questions

← Back to all posts
I need to replace the password with***** in this program
ROCKINGRAYQUAZA

is there a way to change password with astriek in python ,I have already used getpass but I think astriek would be better. any help??

Answered by CoolJames1610 [earned 5 cycles]
View Answer
Voters
ROCKINGRAYQUAZA
Comments
hotnewtop
CoolJames1610

Here is the solution:

use module stdiomask.
search as there are more things you can do
here is an example

Please mark the answer if this helped :)

ROCKINGRAYQUAZA
ROCKINGRAYQUAZA

why did u use prompt command [email protected]

CoolJames1610

prompt just means the question you ask them. @ROCKINGRAYQUAZA

Muffinlavania

@ROCKINGRAYQUAZA look at @CoolJames1610 , he has the answer

SpaceFire

can you clarify the question? Do you mean printing the password with as asterisks? if so you can use a dictionary with the password as the key and the asterisks as the value.