Update verify-python.py

This commit is contained in:
Sushil Kanathia 2020-10-01 08:41:44 +05:30 committed by GitHub
parent c181ffa198
commit 3b10770c1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,6 @@
# The sys module provides information about constants, functions and methods of the Python interpreter.
import sys
#The len() function returns the number of items in an object. When the object is a string, the len() function returns the number of characters in the string.
argCount = len(sys.argv) - 1
if argCount == 1:
@ -19,4 +21,4 @@ if argCount == 1:
raise Exception("Incorrect number of arguments supplied")
print("Correct version of Python " + expectedVersion + " detected")
else:
raise Exception("Incorrect number of arguments supplied")
raise Exception("Incorrect number of arguments supplied")