SyntaxFix
Write A Post
Hire A Developer
Questions
Similarly:
lines = 0 with open(path) as f: for line in f: lines += 1