Python Program Prompt user for a password without echoing | getpass

import getpass
p= getpass.getpass(prompt='Enter the password:', stream=None)
if p.lower()=='passw0rd':
print('Welcome to Webeduclick!')
else:
print('Incorrect password!')

Output:
Enter the password: passw0rd
Welcome to Webeduclick!