Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 258 Bytes

File metadata and controls

12 lines (8 loc) · 258 Bytes

Execute Python Code In Command Shell

We can run Python Code in shell using python -c option.

Example

$ python3 -c "print('Hello World')"
Hello World

Source: Python Docs