I like the use of nargs=1 which will mean your script always deals with lists and keep the code consistent, rather than leaving it out and having some lists and some strings or ints. nargs='?' and nargs='+' are new to me so thanks for them! I use nargs='*' a lot...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I like the use of
nargs=1
which will mean your script always deals with lists and keep the code consistent, rather than leaving it out and having some lists and some strings or ints.nargs='?'
andnargs='+'
are new to me so thanks for them! I usenargs='*'
a lot...