Python Forum
how can i print two value in single line
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how can i print two value in single line
#3
Also, since python 3.6 you have formatted srings
print(f'{k}: {v}')
in any case you may want to look at format string syntax and the Template strings (not presented here - by Larz60+ or me)
Reply


Messages In This Thread
how can i print two value in single line - by desul - Feb-28-2017, 06:01 AM
RE: how can i print two value in single line - by buran - Feb-28-2017, 08:37 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  print on a single line with start/end brackets and commas Paulman 2 1,904 Oct-23-2021, 10:00 AM
Last Post: Paulman
  Reading a text until matched string and print it as a single line cananb 1 2,072 Nov-29-2020, 01:38 PM
Last Post: DPaul
  How to force print statement to print on one line wlsa 4 3,645 Oct-28-2018, 09:39 PM
Last Post: wavic

Forum Jump:

User Panel Messages

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