What does this do? - ArgName in ("-h", "--help") [in python] -


would able explain means? please use simple terms random guy off street able understand. thanks

try testing these things in console... pretty self-explanatory.

# set value argname  >>> argname = "-h" # see if value in tuple >>> argname in ("-h","--help") true # because argname = '-h' in tuple >>> argname = "--help" >>> argname in ("-h","--help") true # because argname = '--help' in tuple >>> argname = "something" >>> argname in ("-h","--help") false # because argname = 'something' not in tuple 

Comments