I'm making a program so that if the user enters a password in a python program incorrectly,it shuts down ubuntu. Example:
>password=input()
>>if password=="ThePassword":
>>>print ("Welcome")
>>>>else:
>>>>>(shutdown code here)
So if anyone can point me in the right direction, I would be very grateful.
By the way, I'm using Python 3.3 and running Ubuntu 13.10 64 bit