Python execute if/else statement based on sys.argv passed on Command Line
<p>I am new to Python and the syntax is really throwing me off. I need to execute a script in which I'd like to execute a function based on the arguments passed on Command Line. Following is the pseudo code:</p>

<pre><code>import sys

...
Code
Authentication
Role Validation 
...

Arg[1]
Arg[2]
Arg[3]

if(Arg[3] !exist)
  execute Func1 with Arg[1] &amp; Arg[2]
else if 
  execute Func 2 with Arg[1], [2] &amp; [3]
</code></pre>

<p>Can someone guide me how to structure this in Python's world or if there is any other way to do it?</p>