How to access parameters of sys.argv Python? : <p>if given a command like:</p>

<p>python 1.py ab 2 34</p>

<p>How to print the next argument while you are currently sitting on the one before. e.g if x is ab then I want to print 2:</p>

<pre><code>import sys
for x in sys.argv[1:]:
    print next element after x
</code></pre>
