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 tom-tom
def non_empty_lines(text: str) -> int:
return sum(1 for s in text.splitlines() if s.strip())
April 28, 2020