remove the white space in front of the comma or apostrophe

Use string formatting:

CTyear = 2020
Name1 = "Dave"
print(f"Hello {Name1}, it's the year {CTyear}.")


Hello Dave, it's the year 2020.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top