Python

Python read file line count

Python read file line count, someone asked me to explain?
In this tutorial I will show you how to count the lines of the file in python. You can call the
readlines function interface to find the count.
CODE:
count= len (open ( r"vgsales.csv", 'rb').readlines())
print (count)
OUTPUT:
read file line count python

Post your comments / questions