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 Tinus_Trotyl
def non_empty_lines(text: str) -> int:
return len([line for line in text.split('\n') if line.strip()])
June 27, 2020