Only reading part of command line argument
<p>Whenever I give a number through the command line, let's say 92, it only takes the 9, completely ignoring the 2. Yet, if I use arg[1] it will use the 2 instead of the 9.
    import sys</p>

<pre><code>for arg in sys.argv:
    print arg

print ""    
print "-----"
print ""    

try:
    argNumber = int(arg[0])
except ValueError:
    argNumber = 0
    print "This is wrong"

for i in range(argNumber, 0, -1):
    print i
</code></pre>

<p>Also, for some reason I can't add a print "This is wrong" line to the except ValueError. It gives me an indention error?</p>
