I want to get result of a Python function in terminal.
I tried to run the command:
$ python3 -m uuid uuid.uuid4().hex
And I expect to see the output be something like: '78cbf0fadaa34ff7ac3f7b965965e207'
Unfortunately I get error:
-bash: syntax error near unexpected token `('
You were close.
-c and not -m.import uuid so you can use it.print() to actually see some output.$ python3 -c "import uuid; print(uuid.uuid4().hex)"
8e79508445db4aca91bb0990529fdd89
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