(Dec-25-2020, 06:28 PM)DPaul Wrote: Hi,
It's not clear to me what you are trying to achieve here.
What is input and what is supposed to happen.
One thing, : you have a def main(),
but you are not calling it.
Paul
(Dec-25-2020, 10:31 PM)bowlofred Wrote: The program appears to be waiting for 2 empty lines. You probably only have one empty line at the end when you paste it. When you hit return, it makes a second empty line.
Or, your console strips the final newline and you have to hit return to add it back. Either is possible.
Yes that exactly what happens. Any suggestion how I can do instead?
I need to break the loop after all input has been stored in lines[]. How can I do that without putting me in this 'enter' trap