Python Forum
Skipping a line on output
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Skipping a line on output
#2
The end = ' ' causes no line feed to be issed
use a formatting statement as follows:
print('\nSum of numbers: {}'.format(sm))
Reply


Messages In This Thread
Skipping a line on output - by lucas0150 - Apr-27-2017, 01:52 AM
RE: Skipping a line on output - by Larz60+ - Apr-27-2017, 01:56 AM
RE: Skipping a line on output - by lucas0150 - Apr-27-2017, 02:10 AM
RE: Skipping a line on output - by Ofnuts - Apr-27-2017, 04:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Seven Segment Display - QUERY on Multi-line side-by-side printing output ajayachander 3 4,838 Mar-13-2020, 07:02 AM
Last Post: ajayachander
  reading text file and writing to an output file precedded by line numbers kannan 7 10,413 Dec-11-2018, 02:19 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

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