Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

len(sys.argv) == 2


len(sys.argv) , checks how many arguments that have been entered. 

len(sys.argv) != 2 just checks whether you entered at least two elements
Source by www.pythonforbeginners.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
7+5 =