Flag control variable

Gary Herron gary.herron at islandtraining.com
Tue Feb 11 18:47:35 EST 2014


On 02/11/2014 01:18 PM, luke.geelen at gmail.com wrote:
> Would it be possible to make an
> int(sys.argv[1])
> Not needed and set value 0 ( or in another script 1)
> For example
> a = int(sys.argv[1])
> b = int(sys.argv[2])
> c = int(sys.argv[3])
> And I run
> Python ./script.py 2 3
>
> It just set c automaticly to 0 or 1
>
> Luke
>
> (PS thanks for the quick help)

That question does not make sense to me.  Yes, you can set c=1 in your 
program, or zero if that's what you want, but this can't be the question 
you are really trying to ask.



More information about the Python-list mailing list