Try testing these things in your console… They are pretty self-explanatory.
# set a value for ArgName
>>> ArgName = "-h"
# see if that value is in this tuple
>>> ArgName in ("-h","--help")
True # because ArgName="-h" which is in the tuple
>>> ArgName = "--help"
>>> ArgName in ("-h","--help")
True # because ArgName="--help" which is in the tuple
>>> ArgName = "something"
>>> ArgName in ("-h","--help")
False # because ArgName="something" which is NOT in the tuple
1
solved What does this do? – ArgName in (“-h”, “–help”) [in python] [closed]