Welcome to my Code Snippets

MyCodeSnippets.Space

run python command in powershell

ReAdABLE Source (What is the ReAdABLE Human Format?)

http://mycodesnippets.space/powershell/python/run-python-command.red

From Powershell

Run Powershell and type:

python -c “print(‘Hello from Python’)”

https://i.imgur.com/JFcLc5n.png

From cmd

Run cmd and type:

powershell -command “python -c "print(‘Hello from Python’)"”

https://i.imgur.com/7f0lxwM.png