python3 -c 'print("hello")'

Category: Python & pip

python3 -c 'print("hello")'

Execute a Python statement directly from the command line

Runs a Python statement directly in the terminal. -c means 'command'.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.