Python read file line count

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