-1

a =input()

print(a)

Now if the user enters:

a =6

6

The output displayed should be:

a =

6

  • 1
    Does this answer your question? [Getting command-line password input in Python](https://stackoverflow.com/questions/9202224/getting-command-line-password-input-in-python) – djvg Mar 31 '21 at 14:02

1 Answers1

1

You should use getpass.getpass(). Here's an example I wrote in Python3.9.2 64-Bit

from getpass import getpass

a = getpass("a = ")
print(a)