Last active
November 7, 2019 20:12
-
-
Save Enet4/7e243cdb733788ae1c9882b108b435c8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Best real time: 2.05 s | |
def is_blank(s): | |
return not s or s.isspace() | |
k = 0 | |
for line in open("biggest.txt"): | |
if is_blank(line): | |
k += 1 | |
print(k) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment