715
edits
Changes
→Conditional Logic
Now let's try doing the same thing in Python. Here's a sample if statement in Python.
<pre>
# Purpose: Check to see if the user is root, if they are not inform them they should run the script as root and exit with an error (non-zero) status code
# Usage: ./checkuser.py