Python Forum
Print Not Printing Correctly
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Print Not Printing Correctly
#3
Learn how to format output
print (s, myint, u, myfloat, t, sumNumbers)
## becomes
print("%s %d %s %5.1f %s %5.1f" % (s, myint, u, myfloat, t, sumNumbers)) 
Reply


Messages In This Thread
Print Not Printing Correctly - by kittylexi - Sep-10-2018, 08:04 PM
RE: Print Not Printing Correctly - by ichabod801 - Sep-10-2018, 11:14 PM
RE: Print Not Printing Correctly - by woooee - Sep-11-2018, 12:38 AM
RE: Print Not Printing Correctly - by Larz60+ - Sep-11-2018, 04:38 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  CSV not printing apostrophe correctly bazcurtis 8 2,579 Aug-22-2022, 04:28 PM
Last Post: bazcurtis
  print not printing newlines rocket777 4 2,336 Jul-03-2021, 09:43 PM
Last Post: bowlofred
  printing a list contents without brackets in a print statement paracelx 1 2,170 Feb-15-2020, 02:15 AM
Last Post: Larz60+
  Printing output without print usage susmith552 1 1,712 Feb-07-2020, 07:52 PM
Last Post: Clunk_Head
  How to print the map correctly janaki26794 0 1,394 Aug-06-2019, 11:00 PM
Last Post: janaki26794

Forum Jump:

User Panel Messages

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