How to pass a piece of code as arguments to python?
I tried like this, but it didn't work.
$ python3 'print("hello world")'
can't open file 'print(hello': [Errno 2] No such file or directory
python -c 'print("hello world")'
Try
python3 -c 'print("hello world")'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With