Python Forum
How to force print statement to print on one line
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to force print statement to print on one line
#3
If they do contain newline characters ('\n'), you can get rid of them with the strip method of strings (independent_variable.strip()).
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: How to force print statement to print on one line - by ichabod801 - Oct-28-2018, 07:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question How to print directory files (& timestamps) chatguy 3 1,400 Dec-29-2022, 07:19 AM
Last Post: ndc85430
  python code tp determin a userName and print message jackAmin 4 1,876 Nov-20-2022, 12:03 AM
Last Post: rob101
  Print not appearing in output dgizzly 1 1,247 Oct-14-2022, 09:55 PM
Last Post: rob101
  How to print out the children index of the search tree? longmen 7 2,243 Apr-02-2022, 06:58 AM
Last Post: Yoriz
  name.split() + (And) + print question sklord 12 3,876 Mar-26-2022, 05:45 PM
Last Post: deanhystad
  print on a single line with start/end brackets and commas Paulman 2 1,900 Oct-23-2021, 10:00 AM
Last Post: Paulman
  When using print what does end="" do ? yngxng 3 2,134 Oct-18-2021, 12:31 AM
Last Post: jefsummers
Question Recursion and permutations: print all permutations filling a list of length N SantiagoPB 6 3,404 Apr-09-2021, 12:36 PM
Last Post: GOTO10
  Problem with print formatting using definitions Tberr86 2 2,048 Mar-20-2021, 06:23 PM
Last Post: DPaul
Sad I can't print what I need and I can't figure it out **wall** icedragon978 2 2,141 Mar-06-2021, 02:37 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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