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:
CODE:
count= len (open ( r"vgsales.csv", 'rb').readlines())OUTPUT:
print (count)

count= len (open ( r"vgsales.csv", 'rb').readlines())OUTPUT:
print (count)
