Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
f-strings and termcolor
#7
I was able to get f-strings to work with termcolor using :

print(f"been idle for", colored(f"{total}", 'cyan'), "seconds !! - lets sync now...")

been idle for 6 seconds !! - lets sync now...
Reply


Messages In This Thread
f-strings and termcolor - by newbieAuggie2019 - Sep-21-2019, 03:37 PM
RE: f-strings and termcolor - by ndc85430 - Sep-21-2019, 03:42 PM
RE: f-strings and termcolor - by newbieAuggie2019 - Sep-21-2019, 04:34 PM
RE: f-strings and termcolor - by ThomasL - Sep-21-2019, 05:08 PM
RE: f-strings and termcolor - by newbieAuggie2019 - Sep-22-2019, 03:52 AM
RE: f-strings and termcolor - by snippsat - Sep-21-2019, 07:32 PM
RE: f-strings and termcolor - by santarosajoe - Jul-28-2020, 02:50 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Trying to understand strings and lists of strings Konstantin23 2 779 Aug-06-2023, 11:42 AM
Last Post: deanhystad
  Splitting strings in list of strings jesse68 3 1,782 Mar-02-2022, 05:15 PM
Last Post: DeaD_EyE
  Finding multiple strings between the two same strings Slither 1 2,534 Jun-05-2019, 09:02 PM
Last Post: Yoriz
  colorama/termcolor not returning coloured lines kapilan15 3 6,829 Jan-14-2019, 12:57 PM
Last Post: buran
  lists, strings, and byte strings Skaperen 2 4,246 Mar-02-2018, 02:12 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

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