Python Forum
Why doesn't this work in the Python Shell?
Thread Rating:
  • 3 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why doesn't this work in the Python Shell?
#9
It shouldn't be an error in a script either.
think of it this way, in order to keep your main printout on a single line,
the print doesn't include a line feed.
the print statement without arguments will provide that line feed and nothing else.
If you want a blank line after the printout, you will need to supply two.
print('\n\n')
Reply


Messages In This Thread
RE: Why doesn't this work in the Python Shell? - by Larz60+ - Oct-26-2016, 06:41 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Extending list doesn't work as expected mmhmjanssen 2 285 May-09-2024, 05:39 PM
Last Post: Pedroski55
  Help creating shell scrip for python file marciokoko 10 1,550 Sep-16-2023, 09:46 PM
Last Post: snippsat
  Why doesn't calling a parent constructor work with arbitrary keyword arguments? PurposefulCoder 4 1,049 Jun-24-2023, 02:14 PM
Last Post: deanhystad
  Launch Python IDLE Shell from terminal Pavel_47 5 1,390 Feb-17-2023, 02:53 PM
Last Post: Pavel_47
  Why doesn't this code work? What is wrong with path? Melcu54 7 2,000 Jan-29-2023, 06:24 PM
Last Post: Melcu54
  color code doesn't work harryvl 1 988 Dec-29-2022, 08:59 PM
Last Post: deanhystad
  client.get_all_tickers() Doesn't work gerald 2 1,812 Jun-16-2022, 07:59 AM
Last Post: gerald
  pip doesn't work after Python upgrade Pavel_47 10 4,457 May-30-2022, 03:31 PM
Last Post: bowlofred
  batch file for running python scipt in Windows shell MaartenRo 2 2,024 Jan-21-2022, 02:36 PM
Last Post: MaartenRo
  For Loop Works Fine But Append For Pandas Doesn't Work knight2000 2 2,145 Dec-18-2021, 02:38 AM
Last Post: knight2000

Forum Jump:

User Panel Messages

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