Interview Query

Counting File Lines

Start Timer

0:00:00

Upvote
10
Downvote
Save question
Mark as completed
View comments (34)
Next question

Let’s say you’re given a huge 100 GB log file. You want to be able to count how many lines are in the file. 

How would you count the total number of lines in the file in Python?

.
.
.
.
.


Comments

Loading comments