Quick actions

cmd+k|ctrl+k

Navigation

Languages

More on string-username/password

Snippet info

Language

Python

Visibility

public

Author

ak.amita28

Created

2026-04-11T07:50:14.858392Z

Updated

2026-04-14T08:41:15.809599Z

username = input('what is your username?')
password = input('\nwhat is your passowrd?')
password_length =len(password)
hidden_password = '*' * password_length

print(f'\nHi {username}, your password, {hidden_password} is {password_length} letters long')
INFO