Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multi-line console input
#5
(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
Reply


Messages In This Thread
Multi-line console input - by lizze - Dec-25-2020, 06:08 PM
RE: Multi-line console input - by DPaul - Dec-25-2020, 06:28 PM
RE: Multi-line console input - by lizze - Dec-25-2020, 09:01 PM
RE: Multi-line console input - by bowlofred - Dec-25-2020, 10:31 PM
RE: Multi-line console input - by lizze - Dec-26-2020, 08:10 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to add multi-line comment section? Winfried 1 220 Mar-24-2024, 04:34 PM
Last Post: deanhystad
  Receive Input on Same Line? johnywhy 8 730 Jan-16-2024, 03:45 AM
Last Post: johnywhy
  regex multi-line kucingkembar 6 1,578 Aug-27-2022, 10:27 PM
Last Post: kucingkembar
  multi-line CMD in one-line python kucingkembar 5 4,000 Jan-01-2022, 12:45 PM
Last Post: kucingkembar
  How to input & output parameters from command line argument shantanu97 1 2,584 Apr-13-2021, 02:12 PM
Last Post: Larz60+
  How to make input come after input if certain line inserted and if not runs OtherCode Adrian_L 6 3,352 Apr-04-2021, 06:10 PM
Last Post: Adrian_L
  Handling multi-input/output audio in python bor1904 4 3,602 Nov-04-2020, 08:25 AM
Last Post: CHLOVRL
  user input for multi-dimentional list without a prior iteration using input() Parshaw 6 2,792 Sep-22-2020, 04:46 PM
Last Post: Parshaw
  bad input line 3 how t fix it youssef210 2 2,714 Aug-27-2020, 04:57 PM
Last Post: nilamo
  Line charts error "'isnan' not supported for the input types," issac_n 1 2,418 Jul-22-2020, 04:34 PM
Last Post: issac_n

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020