Python Forum
How to make print without newline but wait in between each print?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make print without newline but wait in between each print?
#5
(Apr-01-2021, 02:45 AM)BashBedlam Wrote: If I understand the problem correctly, you need to flush the print buffer after the first print statement. Try this:

import time
print("And now for something ", end= '', flush = True)
time.sleep(3)
print("complely different.")

Thanks! But how do I add another print on the same line using this same code, or do I just add another flush?
Reply


Messages In This Thread
RE: How to make print without newline but wait in between each print? - by Adrian_L - Apr-01-2021, 09:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  XML minidom "Pretty Print" Lost Data marksy95 2 281 Jun-15-2024, 11:09 AM
Last Post: Larz60+
  Print the next 3 lines knob 3 383 May-22-2024, 12:26 PM
Last Post: andraee
  Cannot get cmd to print Python file Schauster 11 782 May-16-2024, 04:40 PM
Last Post: xMaxrayx
  Odd Print Behavior tanner_1011 3 353 May-07-2024, 06:46 PM
Last Post: deanhystad
  How can I print from within actor(func) ?? Pedroski55 2 390 May-01-2024, 05:35 AM
Last Post: Pedroski55
  How to Randomly Print a Quote From a Text File When User Types a Command on Main Menu BillKochman 13 1,614 Apr-24-2024, 05:47 AM
Last Post: Bronjer
  print doesnt work in a function ony 2 476 Mar-11-2024, 12:42 PM
Last Post: Pedroski55
  print(0.1+0.2==0.3) akbarza 3 551 Mar-04-2024, 02:02 PM
Last Post: Gribouillis
  problem with print command in super() akbarza 5 869 Feb-01-2024, 12:25 PM
Last Post: deanhystad
  problem with spliting line in print akbarza 3 557 Jan-23-2024, 04:11 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