Hard
Lines Until END
Write a generator
read_lines() that yields input lines until the line END. Use it to print the number of non-empty lines and the total characters in them.Input
Lines, then END.
Output
Two numbers on one line.
Sample 1
Input
hello world END
Output
2 10
Sample 2
Input
END
Output
0 0
Output appears here