Censor


#1
 i understand how the censor works but is it possible that when person types it does not show what he is typing like a passcode.

#2

yea, possible by using getpass:

import getpass

pa = getpass.getpass()

#3

how will that make it appear in ***


#4

pass pa as argument when calling the function


#5

ok ill try let me give it a shot


#6

i still don'y understand can u give it to me in a example.


#7

it does not cover what peron types it does nothing.


#8

import getpass

pa = getpass.getpass()
print pa

this perfectly shows what the user typed? So then you can call your censor function:

print censor(pa, "hide")

how does the password requires censoring?


#9

can u show me some code that it would work with like when person types in raw_input it should not show what person is typing plz give exp...


#10

that is exactly what this code does?


#11

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.