Search code snippets, questions, articles...

Get User input from terminal in Python

You can use the input() function of python to get input from the user when running a python file from the terminal.
user_input = input("MESSAGE YOU WANT TO SHOW : ")

print(user_input)
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place. Check how cool is the tool

Search Index Data (The code snippet can also be found with below search text)

input with custom message show on termional python
Was this helpful?
0 Comments