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