Linux Terminal Glossary
›
Python & pip
python3 -c 'print(1+1)'
Category:
Python & pip
python3 -c 'print(1+1)'
Copy command
Execute a Python expression from the command line
Runs a single Python statement directly without creating a script file. -c means 'command'.
Looking for more?
Search all 7,657 commands
— works offline, in English or Spanish, and fixes typos.