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)

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
Programming Feeds
Learn something new everyday on Devsheet