Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Removing extra space
#2
This happens because in the print function you are using commas. This should fix it:

    
print('Unit price: $' + str(uprice))
print('Total price: $' + str(tot))
Reply


Messages In This Thread
Removing extra space - by sumncguy - Jun-07-2019, 05:06 PM
RE: Removing extra space - by kotter - Jun-07-2019, 05:14 PM
RE: Removing extra space - by ichabod801 - Jun-07-2019, 05:23 PM
RE: Removing extra space - by michalmonday - Jun-07-2019, 05:23 PM
RE: Removing extra space - by sumncguy - Jun-07-2019, 09:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to remove extra space from output list? longmen 3 1,869 May-05-2022, 11:04 PM
Last Post: longmen

Forum Jump:

User Panel Messages

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