python
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)
Was this helpful?
Similar Posts
- Get input as a number in python
- Print DataFrame in pretty format in Terminal
- [Python] The get() method on Python dicts and its "default" arg
- To get url param details from get request in Django
- [Python] Get nodeid, module, function name using Pytest request built-in fixture
- [Python] Using inspect.stack() to get module name, path, function name
- Get tofixed of a value using round() Python