import subprocesssubprocess.call("shutdown -h now", shell=True)
Standard input is empty
Standard output is empty
/bin/sh: 1: shutdown: not found
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!