From 3b10770c1d122382c5447bacba1dfd1b364c0b10 Mon Sep 17 00:00:00 2001 From: Sushil Kanathia <67565900+sushilkanathia@users.noreply.github.com> Date: Thu, 1 Oct 2020 08:41:44 +0530 Subject: [PATCH] Update verify-python.py --- __tests__/verify-python.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/__tests__/verify-python.py b/__tests__/verify-python.py index 02a3604a..abe045b0 100644 --- a/__tests__/verify-python.py +++ b/__tests__/verify-python.py @@ -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") \ No newline at end of file + raise Exception("Incorrect number of arguments supplied")