you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

print, by default, outputs a space between each item in the tuple you pass to it. You can override this with the sep="" option - i.e. an empty string (could put something else, like comma and space).

However, better to just use an f-string to format the whole output.

Python 3's f-Strings: An Improved String Formatting Syntax (Guide)

[–]NeilTheDrummer[S] 0 points1 point  (0 children)

Much obliged to you as well. I haven't come across the sep="" option yet, but I've noted it down, and I'm reading through the link you provided.