Oct-19-2018, 08:22 PM
The calls to print won't display the results as expected because you left some arguments after the closing parenthesis. For example
print ('file line count :'), num_linesshould be
print ('file line count :', num_lines)With your current code,
num_lines
will be printed with python 2.7 but not with 3.5.