We can run Python Code in shell using python -c option.
$ python3 -c "print('Hello World')"
Hello WorldSource: Python Docs
We can run Python Code in shell using python -c option.
$ python3 -c "print('Hello World')"
Hello WorldSource: Python Docs