Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
for split if strip solution in Clear category for Non Empty Lines by veky
def non_empty_lines(text: str) -> int:
return sum(1 for line in text.splitlines() if line.strip())
April 28, 2020