Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Speedy category for Non Empty Lines by _Chico_
def non_empty_lines(text: str) -> int:
lines = text.splitlines()
while '' in lines:
lines.remove('')
count = 0
for i in lines:
if i.isspace():
count += 1
return len(lines) - count
May 18, 2021